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:
@@ -180,7 +180,7 @@ void CppcheckTool::check(const Utils::FilePaths &files)
|
||||
return;
|
||||
|
||||
const CppEditor::ProjectInfo::ConstPtr info
|
||||
= CppEditor::CppModelManager::instance()->projectInfo(m_project);
|
||||
= CppEditor::CppModelManager::projectInfo(m_project);
|
||||
if (!info)
|
||||
return;
|
||||
const QVector<CppEditor::ProjectPart::ConstPtr> parts = info->projectParts();
|
||||
|
||||
@@ -56,7 +56,7 @@ void CppcheckTrigger::checkEditors(const QList<IEditor *> &editors)
|
||||
|
||||
using CppModelManager = CppEditor::CppModelManager;
|
||||
const CppEditor::ProjectInfo::ConstPtr info
|
||||
= CppModelManager::instance()->projectInfo(m_currentProject);
|
||||
= CppModelManager::projectInfo(m_currentProject);
|
||||
if (!info)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user