Cpp{Tools,Editor}: Tests: Use CppModelManager::document()

...instead CppModelManager::snapshot().document().

Change-Id: If79bc03d062d309bbf6d4b229255ba281cddf8d5
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-05-15 10:23:26 -04:00
parent acbc4b9f07
commit a8690b61fe
3 changed files with 6 additions and 6 deletions

View File

@@ -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();
}