Commit ad3718c7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent b55b099e
Pipeline #58609 canceled with stage
......@@ -30,6 +30,7 @@ static constexpr const char *DialogGroup = "UnifiedMailboxSettingsDialog";
SettingsDialog::SettingsDialog(const KSharedConfigPtr &config, UnifiedMailboxManager &boxManager, WId, QWidget *parent)
: QDialog(parent)
, mBoxModel(new QStandardItemModel(this))
, mBoxManager(boxManager)
, mKernel(new MailKernel(config, this))
, mConfig(config)
......@@ -39,7 +40,6 @@ SettingsDialog::SettingsDialog(const KSharedConfigPtr &config, UnifiedMailboxMan
auto h = new QHBoxLayout;
l->addLayout(h);
mBoxModel = new QStandardItemModel(this);
auto view = new QListView(this);
view->setEditTriggers(QListView::NoEditTriggers);
view->setModel(mBoxModel);
......
......@@ -29,7 +29,7 @@ private:
private:
void readConfig();
void writeConfig();
QStandardItemModel *mBoxModel = nullptr;
QStandardItemModel *const mBoxModel;
UnifiedMailboxManager &mBoxManager;
MailKernel *const mKernel;
const KSharedConfigPtr mConfig;
......
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