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

const'ify pointer

parent b39155db
Pipeline #53390 passed with stage
in 55 minutes and 34 seconds
......@@ -9,10 +9,10 @@
#include <QHBoxLayout>
FolderConfigureSettingsViewWidget::FolderConfigureSettingsViewWidget(QWidget *parent)
: FolderConfigureSettingsPageBase(parent)
, mCollectionViewWidget(new MailCommon::CollectionViewWidget(this))
{
QWidget *mainWidget = new QWidget(this);
auto mainLayout = new QHBoxLayout(mainWidget);
mCollectionViewWidget = new MailCommon::CollectionViewWidget(this);
mCollectionViewWidget->setObjectName(QStringLiteral("mCollectionTemplateWidget"));
mainLayout->addWidget(mCollectionViewWidget);
addMainWidget(mainWidget);
......
......@@ -24,7 +24,7 @@ public:
void save(Akonadi::Collection &col);
private:
MailCommon::CollectionViewWidget *mCollectionViewWidget = nullptr;
MailCommon::CollectionViewWidget *const mCollectionViewWidget;
};
#endif // FOLDERCONFIGURESETTINGSVIEWWIDGET_H
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