summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-09-30 22:37:43 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-10-01 05:40:20 +0000
commit37f5c4a3ee314ac671c07bea6ebf5ae985013cc1 (patch)
treeacb9e4123cb23f1bf2b98d969e56acdfb48f999b /src/testlib
parentb92db2388497cdec153b76d0c595a6a91190dfce (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 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 3fb8f9e44e8cbf5937257505d0bc2d1457a26da1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qbenchmarkvalgrind.cpp2
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();