diff options
author | Kai Koehne <kai.koehne@digia.com> | 2013-08-06 12:27:52 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@digia.com> | 2013-08-06 12:39:15 +0200 |
commit | 18c739c82d50857736649a56c7302b26d4aad5a9 (patch) | |
tree | a3c5754e4bd54418d27353cc6a460ce98c1eb4fa /src/plugins/cppeditor/fileandtokenactions_test.cpp | |
parent | 41f8674c3e43ffef4293f73e9b77280c2c6cc113 (diff) |
Remove unused local variable
Fix MSVC warning C4189: 'em' : local variable is initialized but not referenced
Change-Id: I8b86dc95c1e05302909bb35c22949931db774c2a
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
Diffstat (limited to 'src/plugins/cppeditor/fileandtokenactions_test.cpp')
-rw-r--r-- | src/plugins/cppeditor/fileandtokenactions_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cppeditor/fileandtokenactions_test.cpp b/src/plugins/cppeditor/fileandtokenactions_test.cpp index 62faf9dda7..fe3468c9d1 100644 --- a/src/plugins/cppeditor/fileandtokenactions_test.cpp +++ b/src/plugins/cppeditor/fileandtokenactions_test.cpp @@ -135,7 +135,6 @@ typedef TestActionsTestCase::ActionPointer ActionPointer; void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileActions) { CppModelManagerInterface *mm = CppModelManagerInterface::instance(); - EditorManager *em = EditorManager::instance(); // Collect files to process QStringList filesToOpen; @@ -176,7 +175,7 @@ void TestActionsTestCase::run(const Actions &tokenActions, const Actions &fileAc // Open editor QCOMPARE(EditorManager::documentModel()->openedDocuments().size(), 0); - CPPEditor *editor = dynamic_cast<CPPEditor *>(em->openEditor(filePath)); + CPPEditor *editor = dynamic_cast<CPPEditor *>(EditorManager::openEditor(filePath)); QVERIFY(editor); QCOMPARE(EditorManager::documentModel()->openedDocuments().size(), 1); QVERIFY(mm->isCppEditor(editor)); |