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

Const'ify pointer

parent e3a6cca4
Pipeline #54890 passed with stage
in 26 minutes and 52 seconds
......@@ -32,6 +32,7 @@ TagSelectDialog::TagSelectDialog(QWidget *parent, int numberOfSelectedMessages,
: QDialog(parent)
, mNumberOfSelectedMessages(numberOfSelectedMessages)
, mSelectedItem(selectedItem)
, mListTag(new QListWidget(this))
{
setWindowTitle(i18nc("@title:window", "Select Tags"));
auto mainLayout = new QVBoxLayout(this);
......@@ -54,7 +55,6 @@ TagSelectDialog::TagSelectDialog(QWidget *parent, int numberOfSelectedMessages,
auto vbox = new QVBoxLayout;
mainWidget->setLayout(vbox);
vbox->setContentsMargins({});
mListTag = new QListWidget(this);
mListTag->setObjectName(QStringLiteral("listtag"));
auto listWidgetSearchLine = new KListWidgetSearchLine(this, mListTag);
listWidgetSearchLine->setObjectName(QStringLiteral("searchline"));
......
......@@ -39,7 +39,7 @@ private:
Akonadi::Tag::List mCurrentSelectedTags;
QVector<MailCommon::Tag::Ptr> mTagList;
QList<KActionCollection *> mActionCollectionList;
QListWidget *mListTag = nullptr;
QListWidget *const mListTag;
};
#endif /* TAGSELECTDIALOG_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