Commit 997ceedb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify more pointer

parent 4a2c01d2
Pipeline #101039 passed with stage
in 24 minutes and 33 seconds
......@@ -241,6 +241,8 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
, mAttachmentMissing(new AttachmentMissingWarning(this))
, mExternalEditorWarning(new ExternalEditorWarning(this))
, mTooMyRecipientWarning(new TooManyRecipientsWarning(this))
, mCryptoStateIndicatorWidget(new CryptoStateIndicatorWidget(this))
, mPotentialPhishingEmailWarning(new PotentialPhishingEmailWarning(this))
, mIncorrectIdentityFolderWarning(new IncorrectIdentityFolderWarning(this))
, mPluginEditorManagerInterface(new KMailPluginEditorManagerInterface(this))
, mPluginEditorGrammarManagerInterface(new KMailPluginGrammarEditorManagerInterface(this))
......@@ -351,13 +353,11 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
mSplitter->addWidget(mSnippetSplitter);
auto editorAndCryptoStateIndicators = new QWidget(mSplitter);
mCryptoStateIndicatorWidget = new CryptoStateIndicatorWidget(this);
mCryptoStateIndicatorWidget->setShowAlwaysIndicator(KMailSettings::self()->showCryptoLabelIndicator());
auto vbox = new QVBoxLayout(editorAndCryptoStateIndicators);
vbox->setContentsMargins({});
mPotentialPhishingEmailWarning = new PotentialPhishingEmailWarning(this);
connect(mPotentialPhishingEmailWarning, &PotentialPhishingEmailWarning::sendNow, this, &KMComposerWin::slotCheckSendNowStep2);
vbox->addWidget(mPotentialPhishingEmailWarning);
......
......@@ -684,13 +684,13 @@ private:
bool mPreventFccOverwrite = false;
bool mCheckForForgottenAttachments = true;
bool mWasModified = false;
CryptoStateIndicatorWidget *mCryptoStateIndicatorWidget = nullptr;
CryptoStateIndicatorWidget *const mCryptoStateIndicatorWidget;
bool mSendNowByShortcutUsed = false;
KSplitterCollapserButton *mSnippetSplitterCollapser = nullptr;
KToggleAction *mFollowUpToggleAction = nullptr;
MessageComposer::StatusBarLabelToggledState *mStatusBarLabelToggledOverrideMode = nullptr;
MessageComposer::StatusBarLabelToggledState *mStatusBarLabelSpellCheckingChangeMode = nullptr;
PotentialPhishingEmailWarning *mPotentialPhishingEmailWarning = nullptr;
PotentialPhishingEmailWarning *const mPotentialPhishingEmailWarning;
IncorrectIdentityFolderWarning *const mIncorrectIdentityFolderWarning;
KMComposerGlobalAction *mGlobalAction = nullptr;
KPIMTextEdit::RichTextEditorWidget *mRichTextEditorwidget = 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