Commit 4a2c01d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify pointer here.

parent c636ef4c
Pipeline #100836 passed with stage
in 24 minutes and 44 seconds
......@@ -238,6 +238,8 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
, mFolder(Akonadi::Collection(-1))
, mId(id)
, mContext(context)
, mAttachmentMissing(new AttachmentMissingWarning(this))
, mExternalEditorWarning(new ExternalEditorWarning(this))
, mTooMyRecipientWarning(new TooManyRecipientsWarning(this))
, mIncorrectIdentityFolderWarning(new IncorrectIdentityFolderWarning(this))
, mPluginEditorManagerInterface(new KMailPluginEditorManagerInterface(this))
......@@ -359,7 +361,6 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
connect(mPotentialPhishingEmailWarning, &PotentialPhishingEmailWarning::sendNow, this, &KMComposerWin::slotCheckSendNowStep2);
vbox->addWidget(mPotentialPhishingEmailWarning);
mAttachmentMissing = new AttachmentMissingWarning(this);
connect(mAttachmentMissing, &AttachmentMissingWarning::attachMissingFile, this, &KMComposerWin::slotAttachMissingFile);
connect(mAttachmentMissing, &AttachmentMissingWarning::explicitClosedMissingAttachment, this, &KMComposerWin::slotExplicitClosedMissingAttachment);
vbox->addWidget(mAttachmentMissing);
......@@ -437,7 +438,6 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
}
connect(attachmentController, &KMail::AttachmentController::fileAttached, mAttachmentMissing, &AttachmentMissingWarning::slotFileAttached);
mExternalEditorWarning = new ExternalEditorWarning(this);
v->addWidget(mExternalEditorWarning);
mPluginEditorManagerInterface->setParentWidget(this);
......
......@@ -676,8 +676,8 @@ private:
MailCommon::SnippetTreeView *mSnippetWidget = nullptr;
PimCommon::CustomToolsWidgetNg *mCustomToolsWidget = nullptr;
AttachmentMissingWarning *mAttachmentMissing = nullptr;
ExternalEditorWarning *mExternalEditorWarning = nullptr;
AttachmentMissingWarning *const mAttachmentMissing;
ExternalEditorWarning *const mExternalEditorWarning;
TooManyRecipientsWarning *const mTooMyRecipientWarning;
QTimer *mVerifyMissingAttachment = nullptr;
MailCommon::FolderRequester *mFccFolder = 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