aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarker
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-10-25 09:40:55 -0700
committerJake Petroules <jake.petroules@qt.io>2017-11-16 19:06:27 +0000
commit6c712e48035b4871781a662b5ae235a2ba6f86bf (patch)
tree711a3b1b91a942c02c81fcca8da0b76e65195d03 /tests/benchmarker
parent0a57af7fc7e95beb72d28d73962ebeae386da5bc (diff)
STL compatibility: use push_back() instead of operator<<
...and operator+= Change-Id: I848610544cacc2d187d601c0db567703c3e68c93 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/benchmarker')
-rw-r--r--tests/benchmarker/valgrindrunner.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/benchmarker/valgrindrunner.cpp b/tests/benchmarker/valgrindrunner.cpp
index 5d218d2c7..399216226 100644
--- a/tests/benchmarker/valgrindrunner.cpp
+++ b/tests/benchmarker/valgrindrunner.cpp
@@ -58,11 +58,11 @@ void ValgrindRunner::run()
{
QList<QFuture<void>> futures;
if (m_activities & ActivityResolving)
- futures << QtConcurrent::run(this, &ValgrindRunner::traceResolving);
+ futures.push_back(QtConcurrent::run(this, &ValgrindRunner::traceResolving));
if (m_activities & ActivityRuleExecution)
- futures << QtConcurrent::run(this, &ValgrindRunner::traceRuleExecution);
+ futures.push_back(QtConcurrent::run(this, &ValgrindRunner::traceRuleExecution));
if (m_activities & ActivityNullBuild)
- futures << QtConcurrent::run(this, &ValgrindRunner::traceNullBuild);
+ futures.push_back(QtConcurrent::run(this, &ValgrindRunner::traceNullBuild));
while (!futures.empty())
futures.takeFirst().waitForFinished();
}
@@ -154,7 +154,7 @@ QStringList ValgrindRunner::valgrindCommandLine(const QString &qbsCommand, const
void ValgrindRunner::addToResults(const ValgrindResult &result)
{
std::lock_guard<std::mutex> locker(m_resultsMutex);
- m_results << result;
+ m_results.push_back(result);
}
qint64 ValgrindRunner::runCallgrind(const QString &qbsCommand, const QString &buildDir,