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:
@@ -154,7 +154,7 @@ bool DebuggerRunConfigurationAspect::useCppDebugger() const
|
||||
|
||||
static bool projectHasQmlDefines(ProjectExplorer::Project *project)
|
||||
{
|
||||
auto projectInfo = CppEditor::CppModelManager::instance()->projectInfo(project);
|
||||
auto projectInfo = CppEditor::CppModelManager::projectInfo(project);
|
||||
if (!projectInfo) // we may have e.g. a Python project
|
||||
return false;
|
||||
return Utils::anyOf(projectInfo->projectParts(),
|
||||
|
||||
Reference in New Issue
Block a user