diff options
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager_test.cpp')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cppmodelmanager_test.cpp b/src/plugins/cpptools/cppmodelmanager_test.cpp index 3599968108..7afc7c15c7 100644 --- a/src/plugins/cpptools/cppmodelmanager_test.cpp +++ b/src/plugins/cpptools/cppmodelmanager_test.cpp @@ -269,7 +269,7 @@ void CppToolsPlugin::test_modelmanager_framework_headers() QCoreApplication::processEvents(); QVERIFY(mm->snapshot().contains(source)); - Document::Ptr doc = mm->snapshot().document(source); + Document::Ptr doc = mm->document(source); QVERIFY(!doc.isNull()); CPlusPlus::Namespace *ns = doc->globalNamespace(); QVERIFY(ns); @@ -857,7 +857,7 @@ void CppToolsPlugin::test_modelmanager_defines_per_project() while (sup->lastSemanticInfoDocument().isNull()) QCoreApplication::processEvents(); - Document::Ptr doc = mm->snapshot().document(fileName); + Document::Ptr doc = mm->document(fileName); QCOMPARE(nameOfFirstDeclaration(doc), firstDeclarationName); } } @@ -931,7 +931,7 @@ void CppToolsPlugin::test_modelmanager_defines_per_project_pch() sup->snapshotUpdater()->setUsePrecompiledHeaders(true); sup->snapshotUpdater()->update(mm->workingCopy()); - Document::Ptr doc = mm->snapshot().document(fileName); + Document::Ptr doc = mm->document(fileName); QCOMPARE(nameOfFirstDeclaration(doc), firstDeclarationName); } } @@ -1000,7 +1000,7 @@ void CppToolsPlugin::test_modelmanager_defines_per_editor() sup->snapshotUpdater()->setEditorDefines(editorDefines.toUtf8()); sup->snapshotUpdater()->update(mm->workingCopy()); - Document::Ptr doc = mm->snapshot().document(main1File); + Document::Ptr doc = mm->document(main1File); QCOMPARE(nameOfFirstDeclaration(doc), firstDeclarationName); } } |