Commit 0ff9ba4d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify pointer

parent 0249f13b
Pipeline #32688 passed with stage
in 11 minutes and 52 seconds
......@@ -20,7 +20,7 @@ public:
QString mThemePath;
QString mDefaultMainFile;
std::unique_ptr<Engine> mEngine;
std::unique_ptr<Engine> const mEngine;
QString mErrorMessage;
QSharedPointer<Grantlee::FileSystemTemplateLoader> mTemplateLoader;
Grantlee::Template mTemplate;
......
......@@ -32,8 +32,6 @@ public:
Private(const QString &type, const QString &desktopFileName, KActionCollection *ac, const QString &relativePath, ThemeManager *qq)
: applicationType(type)
, defaultDesktopFileName(desktopFileName)
, actionGroup(nullptr)
, menu(nullptr)
, actionCollection(ac)
, q(qq)
{
......@@ -265,12 +263,12 @@ public:
KDirWatch *watch = nullptr;
QActionGroup *actionGroup = nullptr;
KActionMenu *menu = nullptr;
KActionCollection *actionCollection = nullptr;
KActionCollection *const actionCollection;
QAction *separatorAction = nullptr;
QAction *downloadThemesAction = nullptr;
QPointer<KNS3::DownloadDialog> downloadThemesDialog;
ThemeManager *q;
ThemeManager *const q;
};
ThemeManager::ThemeManager(const QString &applicationType, const QString &defaultDesktopFileName, KActionCollection *actionCollection, const QString &path, QObject *parent)
......
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