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

Modernize code

parent 14dba0f2
Pipeline #33666 passed with stage
in 17 minutes and 15 seconds
...@@ -37,7 +37,7 @@ protected: ...@@ -37,7 +37,7 @@ protected:
private: private:
void saveSize(); void saveSize();
KontactInterface::Core *mCore = nullptr; KontactInterface::Core *const mCore;
}; };
} }
......
...@@ -43,7 +43,6 @@ public: ...@@ -43,7 +43,6 @@ public:
KontactApp(int &argc, char **argv[]) KontactApp(int &argc, char **argv[])
: KontactInterface::PimUniqueApplication(argc, argv) : KontactInterface::PimUniqueApplication(argc, argv)
, mMainWindow(nullptr) , mMainWindow(nullptr)
, mSessionRestored(false)
{ {
KLocalizedString::setApplicationDomain("kontact"); KLocalizedString::setApplicationDomain("kontact");
} }
...@@ -67,7 +66,7 @@ public: ...@@ -67,7 +66,7 @@ public:
private: private:
QPointer<MainWindow> mMainWindow; QPointer<MainWindow> mMainWindow;
bool mSessionRestored; bool mSessionRestored = false;
}; };
static void listPlugins() static void listPlugins()
......
...@@ -41,7 +41,7 @@ protected: ...@@ -41,7 +41,7 @@ protected:
KontactInterface::Core *core() const; KontactInterface::Core *core() const;
private: private:
KontactInterface::Core *mCore = nullptr; KontactInterface::Core *const mCore;
}; };
} }
......
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