aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppcheck
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-07-12 09:47:29 +0200
committerhjk <hjk@qt.io>2023-07-12 13:08:09 +0000
commit0b83f110f4ca1a620e8faf2db423886aab255602 (patch)
tree278ae53b2dcf4ec2441a386626581e00e2a0b06e /src/plugins/cppcheck
parent8f82e76ba1c4c3c05aa9e14c2c7937809ec775d2 (diff)
CppEditor: Make a few CppModelManager functions static
... to simplify code using it. Change-Id: Ib2bfbb5a17a1d48088a9cf4973d4c3f006cd34e4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r--src/plugins/cppcheck/cppchecktool.cpp2
-rw-r--r--src/plugins/cppcheck/cppchecktrigger.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cppcheck/cppchecktool.cpp b/src/plugins/cppcheck/cppchecktool.cpp
index cd824b3db47..79e5a3e5b6e 100644
--- a/src/plugins/cppcheck/cppchecktool.cpp
+++ b/src/plugins/cppcheck/cppchecktool.cpp
@@ -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();
diff --git a/src/plugins/cppcheck/cppchecktrigger.cpp b/src/plugins/cppcheck/cppchecktrigger.cpp
index 8be098df558..c7317a958d0 100644
--- a/src/plugins/cppcheck/cppchecktrigger.cpp
+++ b/src/plugins/cppcheck/cppchecktrigger.cpp
@@ -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;