summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/time/qtime/tst_qtime.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-03-22 14:29:05 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2020-06-23 16:59:45 +0200
commitf6d1be7c66782e718b23dc0905b60a975b19e14c (patch)
tree7af02313b32b7157dff58413d12fa58eebd383be /tests/auto/corelib/time/qtime/tst_qtime.cpp
parent21b5c7875cc39c575b14b190add676a5b96fb0b5 (diff)
Use ranged for loops in place of foreach in QTimeZone tests
This (and use of Q_SLOTS for the test slots) makes it possible to enable QT_NO_KEYWORDS and QT_NO_FOREACH in all the corelib/time/ tests. Change-Id: I85fd358f3d1a72c9269d5260d0224640c1751f2d Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'tests/auto/corelib/time/qtime/tst_qtime.cpp')
-rw-r--r--tests/auto/corelib/time/qtime/tst_qtime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/time/qtime/tst_qtime.cpp b/tests/auto/corelib/time/qtime/tst_qtime.cpp
index 9af5fa5e8e..69da4b083f 100644
--- a/tests/auto/corelib/time/qtime/tst_qtime.cpp
+++ b/tests/auto/corelib/time/qtime/tst_qtime.cpp
@@ -48,7 +48,7 @@ public:
}
#endif // remove for ### Qt 6
-private slots:
+private Q_SLOTS:
void msecsTo_data();
void msecsTo();
void secsTo_data();