diff options
author | hjk <hjk@qt.io> | 2020-02-04 17:38:55 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-02-06 17:00:22 +0000 |
commit | ede1d31a3f859ecdf0143d3e5b2aba208ede1b76 (patch) | |
tree | 208f18e8897793419eb08cd4dde41a2bdeb0c183 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | 278e98142283b595f9aa97fdd8abd98d7e2591fe (diff) | |
download | qt-creator-ede1d31a3f859ecdf0143d3e5b2aba208ede1b76.tar.gz |
CppTools: Make CppCodeStyleSettingsPage a plugin pimpl member
Change-Id: I75f90ddbb3cb1f2dbded16c8b6eb6d6c9bbc9f50
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index eb7519d5f4..406f9048f8 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -83,13 +83,10 @@ public: CppToolsPluginPrivate() { m_codeModelSettings.fromSettings(ICore::settings()); - m_cppCodeStyleSettingsPage = new CppCodeStyleSettingsPage; } ~CppToolsPluginPrivate() { - if (m_cppCodeStyleSettingsPage) - delete m_cppCodeStyleSettingsPage; ExtensionSystem::PluginManager::removeObject(&m_cppProjectUpdaterFactory); } @@ -100,7 +97,7 @@ public: CppFileSettings m_fileSettings; CppFileSettingsPage m_cppFileSettingsPage{&m_fileSettings}; CppCodeModelSettingsPage m_cppCodeModelSettingsPage{&m_codeModelSettings}; - QPointer<CppCodeStyleSettingsPage> m_cppCodeStyleSettingsPage = nullptr; + CppCodeStyleSettingsPage m_cppCodeStyleSettingsPage; CppProjectUpdaterFactory m_cppProjectUpdaterFactory; }; |