From 85108e1938fad7b6ca1ce267fb10cda5933dbc50 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Mon, 15 Jan 2024 14:50:02 +0200 Subject: [PATCH] QTest: remove static keyword from the new qWaitFor() chrono overload This is a function template defined inside a namespace, `static` makes no difference here. Change-Id: I2eb52b4fb4432c269b2449ae37550bd0be0dbbce Pick-to: 6.7 Reviewed-by: Thiago Macieira --- src/corelib/kernel/qtestsupport_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qtestsupport_core.h b/src/corelib/kernel/qtestsupport_core.h index efe46ff5039..c5e3858ea85 100644 --- a/src/corelib/kernel/qtestsupport_core.h +++ b/src/corelib/kernel/qtestsupport_core.h @@ -16,7 +16,7 @@ Q_CORE_EXPORT void qSleep(int ms); Q_CORE_EXPORT void qSleep(std::chrono::milliseconds msecs); template -[[nodiscard]] static bool +[[nodiscard]] bool qWaitFor(Functor predicate, QDeadlineTimer deadline = QDeadlineTimer(std::chrono::seconds{5})) { // We should not spin the event loop in case the predicate is already true,