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

const'ify pointer

parent ca443751
......@@ -18,10 +18,10 @@ using namespace MailTransport;
SendMailConfigDialog::SendMailConfigDialog(MailTransport::Transport *transport, QWidget *parent)
: QDialog(parent)
, mTransport(transport)
, mConfigWidget(new MailTransport::SendmailConfigWidget(transport, this))
{
Q_ASSERT(transport);
auto mainLayout = new QVBoxLayout(this);
mConfigWidget = new MailTransport::SendmailConfigWidget(transport, this);
mConfigWidget->setObjectName(QStringLiteral("sendmailconfigwidget"));
mainLayout->addWidget(mConfigWidget);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
......
......@@ -25,7 +25,7 @@ private:
void slotEnabledOkButton(bool);
MailTransport::Transport *const mTransport;
MailTransport::SendmailConfigWidget *mConfigWidget = nullptr;
MailTransport::SendmailConfigWidget *const mConfigWidget;
QPushButton *mOkButton = nullptr;
};
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