Cppcheck: Fix commandline usage

The parameter added as first additional parameter is not a
file path, but a string holding additional arguments.
Amends 26cfa86969.

Task-number: QTCREATORBUG-28586
Change-Id: I6808e491f59f7eda8a63c5c990a7cc9c084135b9
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Stenger
2024-05-30 15:07:49 +02:00
parent 73824ad1f2
commit de968e7ffe

View File

@@ -115,7 +115,7 @@ void CppcheckRunner::checkQueued()
CommandLine commandLine{m_binary, m_arguments, CommandLine::Raw}; CommandLine commandLine{m_binary, m_arguments, CommandLine::Raw};
FilePaths files = m_queue.begin().value(); FilePaths files = m_queue.begin().value();
commandLine.addArg(m_queue.begin().key()); commandLine.addArgs(m_queue.begin().key(), CommandLine::Raw);
m_currentFiles.clear(); m_currentFiles.clear();
int argumentsLength = commandLine.arguments().length(); int argumentsLength = commandLine.arguments().length();
while (!files.isEmpty()) { while (!files.isEmpty()) {