diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/cppeditor/cppquickfix_test.cpp | 2 | ||||
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager_test.cpp | 8 | ||||
-rw-r--r-- | src/plugins/cpptools/cpppreprocessor_test.cpp | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/cppeditor/cppquickfix_test.cpp b/src/plugins/cppeditor/cppquickfix_test.cpp index 64273312f0..d9fb239094 100644 --- a/src/plugins/cppeditor/cppquickfix_test.cpp +++ b/src/plugins/cppeditor/cppquickfix_test.cpp @@ -1863,7 +1863,7 @@ QList<Include> includesForSource(const QByteArray &source) pp.setIncludePaths(QStringList(TestIncludePaths::globalIncludePath())); pp.run(fileName); - Document::Ptr document = cmm->snapshot().document(fileName); + Document::Ptr document = cmm->document(fileName); return document->resolvedIncludes(); } 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); } } diff --git a/src/plugins/cpptools/cpppreprocessor_test.cpp b/src/plugins/cpptools/cpppreprocessor_test.cpp index c37aa73b1e..61a6c4a7b5 100644 --- a/src/plugins/cpptools/cpppreprocessor_test.cpp +++ b/src/plugins/cpptools/cpppreprocessor_test.cpp @@ -73,7 +73,7 @@ public: pp.setIncludePaths(QStringList(TestIncludePaths::directoryOfTestFile())); pp.run(fileName); - Document::Ptr document = m_cmm->snapshot().document(fileName); + Document::Ptr document = m_cmm->document(fileName); QFile(fileName).remove(); return document; } |