summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletion_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r--src/plugins/cpptools/cppcompletion_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp
index 23556b58b9..3616561d09 100644
--- a/src/plugins/cpptools/cppcompletion_test.cpp
+++ b/src/plugins/cpptools/cppcompletion_test.cpp
@@ -31,6 +31,7 @@
#include "cppcompletionassist.h"
#include "cppmodelmanager.h"
+#include <coreplugin/plugintestutils.h>
#include <texteditor/plaintexteditor.h>
#include <texteditor/codeassist/iassistproposal.h>
#include <texteditor/convenience.h>
@@ -91,8 +92,7 @@ public:
~CompletionTestCase()
{
- EditorManager::closeEditors(QList<IEditor*>() << editor,
- /*askAboutModifiedEditors=*/ false);
+ Core::Tests::closeAndDeleteEditor(editor);
cmm->GC();
QVERIFY(cmm->snapshot().isEmpty());
}