diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-12-14 14:45:43 +0100 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2020-12-17 14:33:56 +0100 |
commit | d75c5026e919a9a031f900456ffef7752a03fa27 (patch) | |
tree | 08e57c4583f096e516e0da30c4a398cf00433b9d /tests/auto/corelib/thread/qreadlocker/tst_qreadlocker.cpp | |
parent | 1ec4a7eddc9d521cb84fdf2fe19608f2d446bcb8 (diff) |
Clean-up warnings in corelib/thread tests
Fixed the following warnings:
- empty expression statement has no effect; remove unnecessary ';'
to silence this warning
- zero as null pointer constant
- no previous extern declaration for non-static variable
- use of old-style cast
- integer conversion warnings
Change-Id: Ieb31b127ce8e3b543aaf88a8e8fc463dcc8bc4e3
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/auto/corelib/thread/qreadlocker/tst_qreadlocker.cpp')
-rw-r--r-- | tests/auto/corelib/thread/qreadlocker/tst_qreadlocker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/corelib/thread/qreadlocker/tst_qreadlocker.cpp b/tests/auto/corelib/thread/qreadlocker/tst_qreadlocker.cpp index 241f064a21..8f0b182d05 100644 --- a/tests/auto/corelib/thread/qreadlocker/tst_qreadlocker.cpp +++ b/tests/auto/corelib/thread/qreadlocker/tst_qreadlocker.cpp @@ -109,7 +109,7 @@ void tst_QReadLocker::scopeTest() QVERIFY(thread->wait()); delete thread; - thread = 0; + thread = nullptr; } @@ -156,7 +156,7 @@ void tst_QReadLocker::unlockAndRelockTest() QVERIFY(thread->wait()); delete thread; - thread = 0; + thread = nullptr; } void tst_QReadLocker::lockerStateTest() @@ -196,7 +196,7 @@ void tst_QReadLocker::lockerStateTest() QVERIFY(thread->wait()); delete thread; - thread = 0; + thread = nullptr; } QTEST_MAIN(tst_QReadLocker) |