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:
@@ -370,8 +370,8 @@ bool QuickTestTreeItem::isGroupable() const
|
||||
QSet<QString> internalTargets(const FilePath &proFile)
|
||||
{
|
||||
QSet<QString> result;
|
||||
const auto cppMM = CppEditor::CppModelManager::instance();
|
||||
const auto projectInfo = cppMM->projectInfo(ProjectExplorer::ProjectManager::startupProject());
|
||||
const auto projectInfo =
|
||||
CppEditor::CppModelManager::projectInfo(ProjectExplorer::ProjectManager::startupProject());
|
||||
if (!projectInfo)
|
||||
return {};
|
||||
for (const CppEditor::ProjectPart::ConstPtr &projectPart : projectInfo->projectParts()) {
|
||||
|
||||
Reference in New Issue
Block a user