diff options
author | Thorbjørn Lindeijer <[email protected]> | 2009-01-21 15:52:34 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <[email protected]> | 2009-01-21 15:55:33 +0100 |
commit | 6adecf3767c18e00ecc9a3089527c96fb64ad1c5 (patch) | |
tree | 619aa0478b49de0bcfff09c0d7378d56772cd0c6 /src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp | |
parent | f73861d458f62d9b1d69d934b2f451c5755b0e55 (diff) |
Avoid going through ICore when it's not necessary
Many singletons have their own instance() method, in which case there is
no need to use ICore::instance() to get access to them.
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp')
-rw-r--r-- | src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp index 966c0144355..845255eda5d 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectmanager.cpp @@ -36,7 +36,6 @@ #include "cmakeproject.h" #include "cmakeprojectconstants.h" -#include <coreplugin/icore.h> #include <coreplugin/uniqueidmanager.h> #include <projectexplorer/projectexplorerconstants.h> @@ -44,9 +43,9 @@ using namespace CMakeProjectManager::Internal; CMakeManager::CMakeManager() { - Core::ICore *core = Core::ICore::instance(); - m_projectContext = core->uniqueIDManager()->uniqueIdentifier(CMakeProjectManager::Constants::PROJECTCONTEXT); - m_projectLanguage = core->uniqueIDManager()->uniqueIdentifier(ProjectExplorer::Constants::LANG_CXX); + Core::UniqueIDManager *uidm = Core::UniqueIDManager::instance(); + m_projectContext = uidm->uniqueIdentifier(CMakeProjectManager::Constants::PROJECTCONTEXT); + m_projectLanguage = uidm->uniqueIdentifier(ProjectExplorer::Constants::LANG_CXX); } int CMakeManager::projectContext() const |