diff options
Diffstat (limited to 'src/corelib/kernel/qtestsupport_core.h')
-rw-r--r-- | src/corelib/kernel/qtestsupport_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qtestsupport_core.h b/src/corelib/kernel/qtestsupport_core.h index 01b3fda7d9..7043ffcf0f 100644 --- a/src/corelib/kernel/qtestsupport_core.h +++ b/src/corelib/kernel/qtestsupport_core.h @@ -51,7 +51,7 @@ namespace QTest { Q_CORE_EXPORT void qSleep(int ms); template <typename Functor> -Q_REQUIRED_RESULT static bool qWaitFor(Functor predicate, int timeout = 5000) +[[nodiscard]] static bool qWaitFor(Functor predicate, int timeout = 5000) { // We should not spin the event loop in case the predicate is already true, // otherwise we might send new events that invalidate the predicate. |