forked from qt-creator/qt-creator
QmlJS: Make Document::Ptr point to a const Document.
Change-Id: I15a36c3f918c0ee16f30bc8366df505e0afac949 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -810,8 +810,8 @@ static void find_helper(QFutureInterface<FindReferences::Usage> &future,
|
||||
else
|
||||
language = QmlJSTools::languageOfFile(fileName);
|
||||
|
||||
Document::Ptr newDoc = snapshot.documentFromSource(it.value().first, fileName,
|
||||
language);
|
||||
Document::MutablePtr newDoc = snapshot.documentFromSource(
|
||||
it.value().first, fileName, language);
|
||||
newDoc->parse();
|
||||
snapshot.insert(newDoc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user