summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/thread/qreadwritelock
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-17 13:40:00 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-11-23 09:50:21 +0100
commitf61f8bb966fdc04662fb4e6597698b573fcb8b94 (patch)
tree80871d6271c059376edb205b8aa69d0b4621c9a3 /tests/benchmarks/corelib/thread/qreadwritelock
parent03ab48657d0486bd0e3754f1447a6fcd05846a5d (diff)
Replace qt_make_unique with std::make_unique
We can depend on C++14 now. Change-Id: Iee9796cd22dbfbb70d4bdb25f0eee1662a026d6d Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/benchmarks/corelib/thread/qreadwritelock')
-rw-r--r--tests/benchmarks/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/benchmarks/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp b/tests/benchmarks/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp
index b0b19471e1..12059b375f 100644
--- a/tests/benchmarks/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp
+++ b/tests/benchmarks/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp
@@ -28,7 +28,6 @@
#include <QtCore/QtCore>
#include <QtTest/QtTest>
-#include <QtCore/private/qmemory_p.h>
#include <mutex>
#if __has_include(<shared_mutex>)
#if __cplusplus > 201103L
@@ -154,7 +153,7 @@ void testReadOnly()
Mutex lock;
std::vector<std::unique_ptr<Thread>> threads;
for (int i = 0; i < threadCount; ++i) {
- auto t = qt_make_unique<Thread>();
+ auto t = std::make_unique<Thread>();
t->lock = &lock;
threads.push_back(std::move(t));
}
@@ -215,7 +214,7 @@ void testWriteOnly()
Mutex lock;
std::vector<std::unique_ptr<Thread>> threads;
for (int i = 0; i < threadCount; ++i) {
- auto t = qt_make_unique<Thread>();
+ auto t = std::make_unique<Thread>();
t->lock = &lock;
threads.push_back(std::move(t));
}