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

const'ify

parent e041687d
Pipeline #34241 passed with stage
in 39 minutes and 27 seconds
......@@ -198,8 +198,8 @@ Q_GLOBAL_STATIC(KMMainWidget::PtrList, theMainWidgetList)
KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCollection *actionCollection, const KSharedConfig::Ptr &config)
: QWidget(parent)
, mManageShowCollectionProperties(new ManageShowCollectionProperties(this, this))
, mLaunchExternalComponent(new KMLaunchExternalComponent(this, this))
{
mLaunchExternalComponent = new KMLaunchExternalComponent(this, this);
// must be the first line of the constructor:
mStartupDone = false;
mWasEverShown = false;
......
......@@ -628,7 +628,7 @@ private:
DisplayMessageFormatActionMenu *mDisplayMessageFormatMenu = nullptr;
MessageViewer::Viewer::DisplayFormatMessage mFolderDisplayFormatPreference = MessageViewer::Viewer::UseGlobalSetting;
QAction *mSearchMessages = nullptr;
KMLaunchExternalComponent *mLaunchExternalComponent = nullptr;
KMLaunchExternalComponent *const mLaunchExternalComponent;
ManageShowCollectionProperties *const mManageShowCollectionProperties;
QAction *mShowIntroductionAction = nullptr;
QAction *mMarkAllMessageAsReadAndInAllSubFolder = nullptr;
......
......@@ -23,17 +23,17 @@ Q_DECLARE_METATYPE(QPointer<KPIM::ProgressItem>)
ManageShowCollectionProperties::ManageShowCollectionProperties(KMMainWidget *mainWidget, QObject *parent)
: QObject(parent)
, mMainWidget(mainWidget)
, mPages({QStringLiteral("MailCommon::CollectionGeneralPage")
, QStringLiteral("KMail::CollectionViewPage")
, QStringLiteral("Akonadi::CachePolicyPage")
, QStringLiteral("KMail::CollectionTemplatesPage")
, QStringLiteral("MailCommon::CollectionExpiryPage")
, QStringLiteral("PimCommon::CollectionAclPage")
, QStringLiteral("KMail::CollectionMailingListPage")
, QStringLiteral("KMail::CollectionQuotaPage")
, QStringLiteral("KMail::CollectionShortcutPage")
, QStringLiteral("Akonadi::CollectionMaintenancePage")})
{
mPages = QStringList() << QStringLiteral("MailCommon::CollectionGeneralPage")
<< QStringLiteral("KMail::CollectionViewPage")
<< QStringLiteral("Akonadi::CachePolicyPage")
<< QStringLiteral("KMail::CollectionTemplatesPage")
<< QStringLiteral("MailCommon::CollectionExpiryPage")
<< QStringLiteral("PimCommon::CollectionAclPage")
<< QStringLiteral("KMail::CollectionMailingListPage")
<< QStringLiteral("KMail::CollectionQuotaPage")
<< QStringLiteral("KMail::CollectionShortcutPage")
<< QStringLiteral("Akonadi::CollectionMaintenancePage");
}
ManageShowCollectionProperties::~ManageShowCollectionProperties()
......
......@@ -40,7 +40,7 @@ private:
void showCollectionPropertiesContinued(const QString &pageToShow, QPointer<KPIM::ProgressItem> progressItem);
QHash<Akonadi::Collection::Id, QPointer<Akonadi::CollectionPropertiesDialog> > mHashDialogBox;
QStringList mPages;
const QStringList mPages;
KMMainWidget *const mMainWidget;
};
......
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