diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-05-15 09:30:02 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@nokia.com> | 2012-05-15 10:52:20 +0200 |
commit | 8e69ef5b50c9d260237571ccf71fbb47401c2f5a (patch) | |
tree | 3c045a6787b65ba0f917ee97ad3a98873400f836 /src/plugins/debugger | |
parent | bdd98e684ec0c35c4da37f5606aeb56fad580245 (diff) | |
download | qt-creator-8e69ef5b50c9d260237571ccf71fbb47401c2f5a.tar.gz |
Debugger: Fix compiler warnings about unused variables
Change-Id: I82f76dddb8b294f9a10dfa0f2ab5030c6f8edff3
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r-- | src/plugins/debugger/qml/qmlinspectoradapter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/debugger/qml/qmlinspectoradapter.cpp b/src/plugins/debugger/qml/qmlinspectoradapter.cpp index 16e3ceede7..2ce7fd86ad 100644 --- a/src/plugins/debugger/qml/qmlinspectoradapter.cpp +++ b/src/plugins/debugger/qml/qmlinspectoradapter.cpp @@ -193,7 +193,6 @@ void QmlInspectorAdapter::clientStatusChanged(QmlDebug::ClientStatus status) void QmlInspectorAdapter::toolsClientStatusChanged(QmlDebug::ClientStatus status) { - Core::ICore *core = Core::ICore::instance(); Core::ActionManager *am = Core::ICore::actionManager(); BaseToolsClient *client = qobject_cast<BaseToolsClient*>(sender()); if (status == QmlDebug::Enabled) { @@ -218,7 +217,7 @@ void QmlInspectorAdapter::toolsClientStatusChanged(QmlDebug::ClientStatus status am->registerAction(m_zoomAction, Core::Id(Constants::QML_ZOOMTOOL), m_inspectorToolsContext); - core->updateAdditionalContexts(Core::Context(), + Core::ICore::updateAdditionalContexts(Core::Context(), m_inspectorToolsContext); Utils::SavedAction *action = debuggerCore()->action(QmlUpdateOnSave); @@ -246,7 +245,7 @@ void QmlInspectorAdapter::toolsClientStatusChanged(QmlDebug::ClientStatus status m_selectAction->setChecked(false); m_zoomAction->setChecked(false); - core->updateAdditionalContexts(m_inspectorToolsContext, + Core::ICore::updateAdditionalContexts(m_inspectorToolsContext, Core::Context()); Utils::SavedAction *action = debuggerCore()->action(QmlUpdateOnSave); @@ -534,8 +533,7 @@ void QmlInspectorAdapter::gotoObjectReferenceDefinition( ObjectReference QmlInspectorAdapter::objectReferenceForLocation( const QString &fileName, int cursorPosition) const { - Core::EditorManager *editorManager = Core::EditorManager::instance(); - Core::IEditor *editor = editorManager->openEditor(fileName); + Core::IEditor *editor = Core::EditorManager::openEditor(fileName); TextEditor::ITextEditor *textEditor = qobject_cast<TextEditor::ITextEditor*>(editor); |