From f11b00af7a28df2d84c2a513cc0abdc3a0367c8f Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 1 May 2020 08:23:30 +0200 Subject: [PATCH] CppCheck: Split QProcess::start command line manually Qt6 removed the convenience function taking the whole command line. Change-Id: I0b77eb15c6cd9cff25028dec4baf4a4a70eba83c Reviewed-by: Eike Ziller --- src/plugins/cppcheck/cppcheckrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cppcheck/cppcheckrunner.cpp b/src/plugins/cppcheck/cppcheckrunner.cpp index 86b53f3007c..649e01a2471 100644 --- a/src/plugins/cppcheck/cppcheckrunner.cpp +++ b/src/plugins/cppcheck/cppcheckrunner.cpp @@ -43,7 +43,7 @@ CppcheckRunner::CppcheckRunner(CppcheckTool &tool) : { if (Utils::HostOsInfo::hostOs() == Utils::OsTypeLinux) { QProcess getConf; - getConf.start("getconf ARG_MAX"); + getConf.start("getconf", {"ARG_MAX"}); getConf.waitForFinished(2000); const QByteArray argMax = getConf.readAllStandardOutput().replace("\n", ""); m_maxArgumentsLength = std::max(argMax.toInt(), m_maxArgumentsLength);