diff options
author | hjk <[email protected]> | 2012-01-24 15:36:40 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2012-01-24 18:48:47 +0100 |
commit | 4a21f0c3c8b30cd0bc5957110506e304c629a99b (patch) | |
tree | 3d2477e3f1485ccaa319557bb2229e3f34324867 /src/plugins/valgrind/callgrindtool.cpp | |
parent | c14a4756a92586424f0f1a00c6134e441db50afd (diff) |
Use new static ICore interface.
Change-Id: I9b690d9b150c8d162b15370f9f8986267c9128f1
Reviewed-by: Daniel Teske <[email protected]>
Diffstat (limited to 'src/plugins/valgrind/callgrindtool.cpp')
-rw-r--r-- | src/plugins/valgrind/callgrindtool.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index e6c9913ca29..f3ecd8a2405 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -502,9 +502,7 @@ CallgrindTool::CallgrindTool(QObject *parent) d = new CallgrindToolPrivate(this); setObjectName(QLatin1String("CallgrindTool")); - Core::ICore *core = Core::ICore::instance(); - QObject *editorManager = core->editorManager(); - connect(editorManager, SIGNAL(editorOpened(Core::IEditor*)), + connect(Core::ICore::editorManager(), SIGNAL(editorOpened(Core::IEditor*)), d, SLOT(editorOpened(Core::IEditor*))); } @@ -541,8 +539,7 @@ IAnalyzerTool::ToolMode CallgrindTool::toolMode() const void CallgrindTool::extensionsInitialized() { - Core::ICore *core = Core::ICore::instance(); - Core::ActionManager *actionManager = core->actionManager(); + Core::ActionManager *actionManager = Core::ICore::actionManager(); Core::Context analyzerContext = Core::Context(Analyzer::Constants::C_ANALYZEMODE); |