diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2016-10-19 13:13:10 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-06-14 09:15:06 +0000 |
commit | d4a5ea2d4a367d01990dd3bd01631d2769d844f0 (patch) | |
tree | e5963369d27b7da6ae19beb2f088b1e84ac5054f /tests/benchmarks | |
parent | 91f3687ee51db83d9018bd61c3fbc736c6e9912e (diff) |
tst_bench_QUuid: eliminate an unused variable
Fixes a warning while compiling.
Change-Id: I6d463d5ab6e95714fcf96a883577249593490380
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/corelib/plugin/quuid/tst_quuid.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/benchmarks/corelib/plugin/quuid/tst_quuid.cpp b/tests/benchmarks/corelib/plugin/quuid/tst_quuid.cpp index 6a93391896..b52654d1b4 100644 --- a/tests/benchmarks/corelib/plugin/quuid/tst_quuid.cpp +++ b/tests/benchmarks/corelib/plugin/quuid/tst_quuid.cpp @@ -138,13 +138,12 @@ void tst_bench_QUuid::createUuidV5() void tst_bench_QUuid::toDataStream() { - QUuid uuid1, uuid2; - uuid1 = QUuid::createUuid(); + QUuid uuid = QUuid::createUuid(); QByteArray ar; { QDataStream out(&ar,QIODevice::WriteOnly); QBENCHMARK { - out << uuid1; + out << uuid; } } } |