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";
MessagePropertyDialog::MessagePropertyDialog(QWidget *parent, KTNEFMessage *msg)
: QDialog(parent)
, mMessage(msg)
, mListView(new QTreeWidget(this))
{
mMessage = msg;
auto mainLayout = new QVBoxLayout(this);
setWindowTitle(i18nc("@title:window", "Message Properties"));
mListView = new QTreeWidget(this);
mainLayout->addWidget(mListView);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
......
......@@ -34,7 +34,7 @@ private:
void slotSaveProperty();
void readConfig();
void writeConfig();
KTNEFMessage *mMessage = nullptr;
QTreeWidget *mListView = nullptr;
KTNEFMessage *const mMessage;
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