diff options
Diffstat (limited to 'src/plugins/cpptools/cppcompletion_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppcompletion_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppcompletion_test.cpp b/src/plugins/cpptools/cppcompletion_test.cpp index 625132f99b..e901021513 100644 --- a/src/plugins/cpptools/cppcompletion_test.cpp +++ b/src/plugins/cpptools/cppcompletion_test.cpp @@ -88,8 +88,7 @@ public: m_textDocument = m_editorWidget->document(); // Get Document - waitForFileInGlobalSnapshot(fileName); - const Document::Ptr document = globalSnapshot().document(fileName); + const Document::Ptr document = waitForFileInGlobalSnapshot(fileName); QVERIFY(document); QVERIFY(document->diagnosticMessages().isEmpty()); |