aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppcheck
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-06-29 16:45:11 +0200
committerhjk <hjk@qt.io>2023-06-30 09:34:26 +0000
commit98bba063b6083832e14f63d55aba212702550ccb (patch)
tree965daebfc01a6caae3be96b2e40413537b8b8263 /src/plugins/cppcheck
parent72f269bf6a87d94d016f9f467139b70192bb5d82 (diff)
Utils: Use FilePathAspect::setDefaultValue
... instead of StringAspect::setDefaultFilePath. Closer to the intended uniform access. Task-number: QTCREATORBUG-29167 Change-Id: I87df385ef98873a0955010149a9a9b09a5f29daf Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r--src/plugins/cppcheck/cppcheckoptions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckoptions.cpp b/src/plugins/cppcheck/cppcheckoptions.cpp
index 1289ba0e0e2..214d4b3c229 100644
--- a/src/plugins/cppcheck/cppcheckoptions.cpp
+++ b/src/plugins/cppcheck/cppcheckoptions.cpp
@@ -44,7 +44,7 @@ CppcheckOptions::CppcheckOptions()
FilePath programFiles = FilePath::fromUserInput(qtcEnvironmentVariable("PROGRAMFILES"));
if (programFiles.isEmpty())
programFiles = "C:/Program Files";
- binary.setDefaultValue(programFiles.pathAppended("Cppcheck/cppcheck.exe").toString());
+ binary.setDefaultValue(programFiles.pathAppended("Cppcheck/cppcheck.exe"));
}
warning.setSettingsKey("warning");