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

const'ify pointer here

parent 78798da8
Pipeline #76013 passed with stage
in 23 minutes and 36 seconds
...@@ -33,12 +33,12 @@ static const char myMessagePropertyDialogGroupName[] = "MessagePropertyDialog"; ...@@ -33,12 +33,12 @@ static const char myMessagePropertyDialogGroupName[] = "MessagePropertyDialog";
MessagePropertyDialog::MessagePropertyDialog(QWidget *parent, KTNEFMessage *msg) MessagePropertyDialog::MessagePropertyDialog(QWidget *parent, KTNEFMessage *msg)
: QDialog(parent) : QDialog(parent)
, mMessage(msg)
, mListView(new QTreeWidget(this))
{ {
mMessage = msg;
auto mainLayout = new QVBoxLayout(this); auto mainLayout = new QVBoxLayout(this);
setWindowTitle(i18nc("@title:window", "Message Properties")); setWindowTitle(i18nc("@title:window", "Message Properties"));
mListView = new QTreeWidget(this);
mainLayout->addWidget(mListView); mainLayout->addWidget(mListView);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this); auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok); QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
......
...@@ -34,7 +34,7 @@ private: ...@@ -34,7 +34,7 @@ private:
void slotSaveProperty(); void slotSaveProperty();
void readConfig(); void readConfig();
void writeConfig(); void writeConfig();
KTNEFMessage *mMessage = nullptr; KTNEFMessage *const mMessage;
QTreeWidget *mListView = nullptr; QTreeWidget *const mListView;
}; };
Supports Markdown
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