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

Const'ify pointer

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