Commit 9c13c0c2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer

parent 9e1de390
...@@ -23,6 +23,7 @@ using namespace MessageComposer; ...@@ -23,6 +23,7 @@ using namespace MessageComposer;
SendLaterDialog::SendLaterDialog(SendLaterInfo *info, QWidget *parent) SendLaterDialog::SendLaterDialog(SendLaterInfo *info, QWidget *parent)
: QDialog(parent) : QDialog(parent)
, mInfo(info) , mInfo(info)
, mSendLaterWidget(new Ui::SendLaterWidget)
{ {
setWindowTitle(i18nc("@title:window", "Send Later")); setWindowTitle(i18nc("@title:window", "Send Later"));
setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail"))); setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
...@@ -30,7 +31,6 @@ SendLaterDialog::SendLaterDialog(SendLaterInfo *info, QWidget *parent) ...@@ -30,7 +31,6 @@ SendLaterDialog::SendLaterDialog(SendLaterInfo *info, QWidget *parent)
auto mainLayout = new QVBoxLayout(this); auto mainLayout = new QVBoxLayout(this);
auto sendLaterWidget = new QWidget(this); auto sendLaterWidget = new QWidget(this);
mSendLaterWidget = new Ui::SendLaterWidget;
mSendLaterWidget->setupUi(sendLaterWidget); mSendLaterWidget->setupUi(sendLaterWidget);
auto w = new QWidget(this); auto w = new QWidget(this);
......
...@@ -48,7 +48,7 @@ private: ...@@ -48,7 +48,7 @@ private:
QDateTime mSendDateTime; QDateTime mSendDateTime;
SendLaterAction mAction = Unknown; SendLaterAction mAction = Unknown;
QCheckBox *mDelay = nullptr; QCheckBox *mDelay = nullptr;
Ui::SendLaterWidget *mSendLaterWidget = nullptr; Ui::SendLaterWidget *const mSendLaterWidget;
SendLaterInfo *mInfo = nullptr; SendLaterInfo *mInfo = nullptr;
QPushButton *mOkButton = nullptr; QPushButton *mOkButton = nullptr;
}; };
......
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