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

Const(ify pointer

parent f5f605f0
Pipeline #104717 passed with stage
in 3 minutes and 50 seconds
......@@ -198,26 +198,19 @@ static KMMainWidget *myMainWidget = nullptr;
//-----------------------------------------------------------------------------
KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCollection *actionCollection, const KSharedConfig::Ptr &config)
: QWidget(parent)
, mToolbarActionSeparator(new QAction(this))
, mSievePasswordProvider(new KMSieveImapPasswordProvider(this))
, mLaunchExternalComponent(new KMLaunchExternalComponent(this, this))
, mManageShowCollectionProperties(new ManageShowCollectionProperties(this, this))
, mCollectionSwitcherTreeViewManager(new CollectionSwitcherTreeViewManager(this))
{
// must be the first line of the constructor:
mStartupDone = false;
mWasEverShown = false;
mReaderWindowActive = true;
mReaderWindowBelow = true;
mFolderHtmlLoadExtPreference = false;
mDestructed = false;
mActionCollection = actionCollection;
mTopLayout = new QVBoxLayout(this);
mTopLayout->setContentsMargins({});
mConfig = config;
mGUIClient = aGUIClient;
mFolderTreeWidget = nullptr;
Akonadi::ControlGui::widgetNeedsAkonadi(this);
mFavoritesModel = nullptr;
mSievePasswordProvider = new KMSieveImapPasswordProvider(this);
mVacationManager = new KSieveUi::VacationManager(mSievePasswordProvider, this);
connect(mVacationManager,
&KSieveUi::VacationManager::updateVacationScriptStatus,
......@@ -229,7 +222,6 @@ KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCo
userFeedBackNotificationPopup->setFeedbackProvider(kmkernel->userFeedbackProvider());
#endif
mToolbarActionSeparator = new QAction(this);
mToolbarActionSeparator->setSeparator(true);
KMailPluginInterface::self()->setActionCollection(mActionCollection);
......
......@@ -585,8 +585,8 @@ private:
bool mHtmlGlobalSetting = false;
bool mHtmlLoadExtGlobalSetting = false;
bool mFolderHtmlLoadExtPreference = false;
bool mReaderWindowActive = false;
bool mReaderWindowBelow = false;
bool mReaderWindowActive = true;
bool mReaderWindowBelow = true;
bool mEnableFavoriteFolderView = false;
bool mEnableFolderQuickSearch = false;
......@@ -604,7 +604,7 @@ private:
KSieveUi::VacationManager *mVacationManager = nullptr;
KActionCollection *mActionCollection = nullptr;
QAction *mToolbarActionSeparator = nullptr;
QAction *const mToolbarActionSeparator;
QVBoxLayout *mTopLayout = nullptr;
bool mDestructed = false;
QList<QAction *> mFilterMenuActions;
......@@ -632,7 +632,7 @@ private:
QTimer mCheckMailTimer;
KSieveUi::SieveImapPasswordProvider *mSievePasswordProvider = nullptr;
KSieveUi::SieveImapPasswordProvider *const mSievePasswordProvider;
QPointer<MailCommon::FolderSelectionDialog> mMoveOrCopyToDialog;
QPointer<MailCommon::FolderSelectionDialog> mSelectFromAllFoldersDialog;
QAction *mServerSideSubscription = 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