diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2024-01-15 14:50:02 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2024-01-19 00:15:59 +0200 |
commit | 85108e1938fad7b6ca1ce267fb10cda5933dbc50 (patch) | |
tree | 3cf5c6b92c6b6c1969064525e55a6eda27fd5c94 /src/corelib/kernel | |
parent | a3a48815cc9430d6f5c736a312ea4ea5c0895205 (diff) |
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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel')
-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 efe46ff503..c5e3858ea8 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 <typename Functor> -[[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, |