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 <>
parent 41f8674c
......@@ -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));
QCOMPARE(EditorManager::documentModel()->openedDocuments().size(), 1);
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