aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/fileandtokenactions_test.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-08-06 12:27:52 +0200
committerKai Koehne <kai.koehne@digia.com>2013-08-06 12:39:15 +0200
commit18c739c82d50857736649a56c7302b26d4aad5a9 (patch)
treea3c5754e4bd54418d27353cc6a460ce98c1eb4fa /src/plugins/cppeditor/fileandtokenactions_test.cpp
parent41f8674c3e43ffef4293f73e9b77280c2c6cc113 (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.cpp3
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));