From 6ae7a02104631a2234c475575ae15ca79bef14f9 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 10 Sep 2020 20:39:49 +0200 Subject: Remove most compiler warnings about missing overrides Remove around 1000 compiler warnings about missing overrides in our auto tests. This significantly reduce the compiler warning noise in our auto tests, so that one can actually better see the real problems inbetween. Change-Id: Id0c04dba43fcaf55d8cd2b5c6697358857c31bf9 Reviewed-by: Volker Hilsheimer --- tests/auto/other/qobjectrace/tst_qobjectrace.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tests/auto/other/qobjectrace') diff --git a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp index dba1fddb76..119a658471 100644 --- a/tests/auto/other/qobjectrace/tst_qobjectrace.cpp +++ b/tests/auto/other/qobjectrace/tst_qobjectrace.cpp @@ -104,7 +104,8 @@ public: QThread::start(); } - void run() { + void run() override + { QTimer zeroTimer; connect(&zeroTimer, SIGNAL(timeout()), object, SLOT(theSlot())); connect(&zeroTimer, SIGNAL(timeout()), this, SLOT(checkStopWatch()), Qt::DirectConnection); @@ -219,7 +220,8 @@ public: objects[i]->moveToThread(this); } - void run() { + void run() override + { for (int i = number-1; i >= 0; --i) { /* Do some more connection and disconnection between object in this thread that have not been destroyed yet */ @@ -417,7 +419,7 @@ public: { } - void run() + void run() override { while (!isInterruptionRequested()) { QMetaObject::Connection conn = connect(sender, &DisconnectRaceSenderObject::theSignal, @@ -441,7 +443,7 @@ public: { } - void run() + void run() override { while (!isInterruptionRequested()) { emit sender->theSignal(); @@ -490,7 +492,7 @@ public: { } - void run() + void run() override { QScopedPointer receiver(new DeleteReceiverRaceReceiver(sender)); exec(); -- cgit v1.2.3