aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppcheck
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-05-10 11:48:14 +0200
committerhjk <hjk@qt.io>2019-05-10 12:36:27 +0000
commit88c495976c08ba6dc7fb3ab4dcf848791187ce64 (patch)
tree2b5dbf82178b489123f6b1d774365a5cfc6d0ce1 /src/plugins/cppcheck
parent555360c1d40f04d0667bb355e5f8a4406dc435f6 (diff)
Utils: RemoveFileName::{size,count,length}
Use .toString().{size,count,length} instead. Change-Id: Ib697155f441a8297fb179921bcd3397719a44073 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cppcheck')
-rw-r--r--src/plugins/cppcheck/cppcheckrunner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckrunner.cpp b/src/plugins/cppcheck/cppcheckrunner.cpp
index f67044cb67..55f7472ef6 100644
--- a/src/plugins/cppcheck/cppcheckrunner.cpp
+++ b/src/plugins/cppcheck/cppcheckrunner.cpp
@@ -140,7 +140,7 @@ void CppcheckRunner::checkQueued()
m_currentFiles.clear();
int argumentsLength = arguments.length();
while (!files.isEmpty()) {
- argumentsLength += files.first().length() + 1; // +1 for separator
+ argumentsLength += files.first().toString().size() + 1; // +1 for separator
if (argumentsLength >= m_maxArgumentsLength)
break;
m_currentFiles.push_back(files.first());