diff options
author | hjk <hjk@qt.io> | 2020-05-01 08:23:30 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2020-05-04 08:00:47 +0000 |
commit | f11b00af7a28df2d84c2a513cc0abdc3a0367c8f (patch) | |
tree | 4df2f5fc70a416c04be090d36b2e3fdd7abb40cf /src/plugins/cppcheck/cppcheckrunner.cpp | |
parent | b18587742ff23c7f221af81da99ed72ba87a1cdd (diff) | |
download | qt-creator-f11b00af7a28df2d84c2a513cc0abdc3a0367c8f.tar.gz |
CppCheck: Split QProcess::start command line manually
Qt6 removed the convenience function taking the whole command line.
Change-Id: I0b77eb15c6cd9cff25028dec4baf4a4a70eba83c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckrunner.cpp')
-rw-r--r-- | src/plugins/cppcheck/cppcheckrunner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppcheck/cppcheckrunner.cpp b/src/plugins/cppcheck/cppcheckrunner.cpp index 86b53f3007..649e01a247 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); |