summaryrefslogtreecommitdiff
path: root/src/plugins/cppcheck/cppchecktrigger.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2022-11-24 19:16:47 +0100
committerhjk <hjk@qt.io>2023-01-11 09:54:25 +0000
commitb87f0519e300c86ded0e4fd52379b0df0d996402 (patch)
treed261fc54e07a99454bd30b90c815451638b549d8 /src/plugins/cppcheck/cppchecktrigger.cpp
parent887db6b419b443bfd7f1fd7d95632d6ad18c603c (diff)
downloadqt-creator-b87f0519e300c86ded0e4fd52379b0df0d996402.tar.gz
CppEditor: Use FilePath for ProjectPath::m_sourceFiles
... and update using code. Change-Id: I682727a4b2982dba388e7cc7b9488225748d591f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppchecktrigger.cpp')
-rw-r--r--src/plugins/cppcheck/cppchecktrigger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/cppcheck/cppchecktrigger.cpp b/src/plugins/cppcheck/cppchecktrigger.cpp
index 93f15522db..55b1cf7ac0 100644
--- a/src/plugins/cppcheck/cppchecktrigger.cpp
+++ b/src/plugins/cppcheck/cppchecktrigger.cpp
@@ -78,8 +78,7 @@ void CppcheckTrigger::checkEditors(const QList<IEditor *> &editors)
if (!m_currentProject->isKnownFile(path))
continue;
- const QString &pathString = path.toString();
- if (!info->sourceFiles().contains(pathString))
+ if (!info->sourceFiles().contains(path))
continue;
connect(document, &IDocument::aboutToReload,