Commit 4b506982 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer

parent 8c265ef1
Pipeline #48254 failed with stage
in 14 minutes and 38 seconds
......@@ -20,12 +20,12 @@ static const char myConfigGroupName[] = "SieveInfoDialog";
using namespace KSieveUi;
SieveInfoDialog::SieveInfoDialog(QWidget *parent)
: QDialog(parent)
, mSieveInfoWidget(new SieveInfoWidget(this))
{
setWindowTitle(i18nc("@title:window", "Sieve Server Support"));
auto mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainLayout"));
mSieveInfoWidget = new SieveInfoWidget(this);
mSieveInfoWidget->setObjectName(QStringLiteral("mSieveInfoWidget"));
mainLayout->addWidget(mSieveInfoWidget);
......
......@@ -22,7 +22,7 @@ public:
private:
void readConfig();
void writeConfig();
SieveInfoWidget *mSieveInfoWidget = nullptr;
SieveInfoWidget *const mSieveInfoWidget;
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment