From f61f8bb966fdc04662fb4e6597698b573fcb8b94 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 17 Nov 2020 13:40:00 +0100 Subject: Replace qt_make_unique with std::make_unique We can depend on C++14 now. Change-Id: Iee9796cd22dbfbb70d4bdb25f0eee1662a026d6d Reviewed-by: Lars Knoll --- .../benchmarks/corelib/thread/qreadwritelock/tst_qreadwritelock.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/benchmarks') 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 #include -#include #include #if __has_include() #if __cplusplus > 201103L @@ -154,7 +153,7 @@ void testReadOnly() Mutex lock; std::vector> threads; for (int i = 0; i < threadCount; ++i) { - auto t = qt_make_unique(); + auto t = std::make_unique(); t->lock = &lock; threads.push_back(std::move(t)); } @@ -215,7 +214,7 @@ void testWriteOnly() Mutex lock; std::vector> threads; for (int i = 0; i < threadCount; ++i) { - auto t = qt_make_unique(); + auto t = std::make_unique(); t->lock = &lock; threads.push_back(std::move(t)); } -- cgit v1.2.3