forked from qt-creator/qt-creator
CppEditor: Make a few CppModelManager functions static
... to simplify code using it. Change-Id: Ib2bfbb5a17a1d48088a9cf4973d4c3f006cd34e4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -39,7 +39,7 @@ void BaseEditorDocumentProcessor::run(bool projectsUpdated)
|
||||
? Utils::Language::C
|
||||
: Utils::Language::Cxx;
|
||||
|
||||
runImpl({CppModelManager::instance()->workingCopy(),
|
||||
runImpl({CppModelManager::workingCopy(),
|
||||
ProjectExplorer::ProjectManager::startupProject(),
|
||||
languagePreference,
|
||||
projectsUpdated});
|
||||
@@ -72,7 +72,7 @@ void BaseEditorDocumentProcessor::runParser(QPromise<void> &promise,
|
||||
}
|
||||
|
||||
parser->update(promise, updateParams);
|
||||
CppModelManager::instance()->finishedRefreshingSourceFiles({parser->filePath().toString()});
|
||||
CppModelManager::finishedRefreshingSourceFiles({parser->filePath().toString()});
|
||||
|
||||
promise.setProgressValue(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user