Commit 18c739c8 authored by Kai Koehne's avatar Kai Koehne
Browse files

Remove unused local variable



Fix MSVC warning C4189: 'em' : local variable is initialized but not referenced

Change-Id: I8b86dc95c1e05302909bb35c22949931db774c2a
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 41f8674c
...@@ -135,7 +135,6 @@ typedef TestActionsTestCase::ActionPointer ActionPointer; ...@@ -135,7 +135,6 @@ typedef TestActionsTestCase::ActionPointer ActionPointer;
void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileActions) void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileActions)
{ {
CppModelManagerInterface *mm = CppModelManagerInterface::instance(); CppModelManagerInterface *mm = CppModelManagerInterface::instance();
EditorManager *em = EditorManager::instance();
// Collect files to process // Collect files to process
QStringList filesToOpen; QStringList filesToOpen;
...@@ -176,7 +175,7 @@ void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileAc ...@@ -176,7 +175,7 @@ void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileAc
// Open editor // Open editor
QCOMPARE(EditorManager::documentModel()->openedDocuments().size(), 0); QCOMPARE(EditorManager::documentModel()->openedDocuments().size(), 0);
CPPEditor *editor = dynamic_cast<CPPEditor *>(em->openEditor(filePath)); CPPEditor *editor = dynamic_cast<CPPEditor *>(EditorManager::openEditor(filePath));
QVERIFY(editor); QVERIFY(editor);
QCOMPARE(EditorManager::documentModel()->openedDocuments().size(), 1); QCOMPARE(EditorManager::documentModel()->openedDocuments().size(), 1);
QVERIFY(mm->isCppEditor(editor)); QVERIFY(mm->isCppEditor(editor));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment