forked from qt-creator/qt-creator
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:
@@ -115,7 +115,7 @@ void CppcheckRunner::checkQueued()
|
||||
|
||||
CommandLine commandLine{m_binary, m_arguments, CommandLine::Raw};
|
||||
FilePaths files = m_queue.begin().value();
|
||||
commandLine.addArg(m_queue.begin().key());
|
||||
commandLine.addArgs(m_queue.begin().key(), CommandLine::Raw);
|
||||
m_currentFiles.clear();
|
||||
int argumentsLength = commandLine.arguments().length();
|
||||
while (!files.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user