diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-09-30 22:37:43 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-01 04:55:47 +0200 |
commit | 3fb8f9e44e8cbf5937257505d0bc2d1457a26da1 (patch) | |
tree | c8f3e05e2bfc15b3143abc20bf97437b014f0c61 /src/testlib/qbenchmarkvalgrind.cpp | |
parent | 8f74f7d25b62979d2d8a458cdeb282184b64d8d9 (diff) |
Properly deprecate QProcess::pid
Address an old ### Qt 5 comment. The method has been documented as deprecated
and replaced by QProcess::processId since at least Qt 5.9, so we can first
properly flag it as such for 5.15.2, and remove it from Qt 6 in a follow-up
commit.
Change-Id: Ic4e3351740617083b16723db8eef7a341bccfbf6
Pick-to: 5.15
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/qbenchmarkvalgrind.cpp')
-rw-r--r-- | src/testlib/qbenchmarkvalgrind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qbenchmarkvalgrind.cpp b/src/testlib/qbenchmarkvalgrind.cpp index 44888c4d30..29cbcd8e3c 100644 --- a/src/testlib/qbenchmarkvalgrind.cpp +++ b/src/testlib/qbenchmarkvalgrind.cpp @@ -187,7 +187,7 @@ bool QBenchmarkValgrindUtils::runCallgrindSubProcess(const QStringList &origAppA process.start(QLatin1String("valgrind"), args); process.waitForStarted(-1); QBenchmarkGlobalData::current->callgrindOutFileBase = - QBenchmarkValgrindUtils::outFileBase(process.pid()); + QBenchmarkValgrindUtils::outFileBase(process.processId()); const bool finishedOk = process.waitForFinished(-1); exitCode = process.exitCode(); |