CppCheck: Use more FilePath

Change-Id: I45da67df4b76032303b57f567d73ae01bf9f2e91
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-09-30 16:58:46 +02:00
parent cc8d65aa25
commit 04f6f6bbc0
4 changed files with 17 additions and 18 deletions

View File

@@ -74,7 +74,7 @@ CppcheckRunner::~CppcheckRunner()
m_queueTimer.stop();
}
void CppcheckRunner::reconfigure(const QString &binary, const QString &arguments)
void CppcheckRunner::reconfigure(const FilePath &binary, const QString &arguments)
{
m_binary = binary;
m_arguments = arguments;
@@ -157,7 +157,7 @@ void CppcheckRunner::checkQueued()
else
m_queue.begin().value() = files;
m_process->setCommand(CommandLine(FilePath::fromString(m_binary), arguments, CommandLine::Raw));
m_process->setCommand(CommandLine(m_binary, arguments, CommandLine::Raw));
m_process->start();
}