summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-04-11 09:48:17 +0200
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-04-11 09:51:17 +0200
commita751e447bc06b0b16f2a9930658bd56dab12a7e8 (patch)
tree7927446ad7535c22e38fbe521a870e0486babc50 /src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
parentf0742b620ce036964ea442c6d435d705d32be77f (diff)
downloadqt-creator-a751e447bc06b0b16f2a9930658bd56dab12a7e8.tar.gz
CMake: Fix warning about unused variable
ICore::actionManager() is a static function. Change-Id: Ic687dd1e41923e962f8eaf12b513dc188655d9c6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp b/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
index f054f6f066..86756f8657 100644
--- a/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp
@@ -57,8 +57,7 @@ CMakeEditorFactory::CMakeEditorFactory(CMakeManager *manager)
TextEditorActionHandler::UnCommentSelection
| TextEditorActionHandler::JumpToFileUnderCursor);
- ICore *core = ICore::instance();
- ActionManager *am = core->actionManager();
+ ActionManager *am = ICore::actionManager();
ActionContainer *contextMenu = am->createMenu(Constants::M_CONTEXT);
Command *cmd;
Context cmakeEditorContext = Context(Constants::C_CMAKEEDITOR);