summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventdispatcher_glib.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-02 02:31:32 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-16 17:22:34 +0200
commitc568257a52d39d1ae831ec3420ec4eaefdec3f58 (patch)
tree5a7678a446cad8c3792095e321849d121a2d1b94 /src/corelib/kernel/qeventdispatcher_glib.cpp
parent5a1c3c29aca08e2add63bf294dc6dd0eb26cba4b (diff)
Event dispatchers: code tidies
Turn an implicit conversion to bool in * a call to testAnyFlag in one case; * a comparison against 0 in another case, for consistency with the surrounding code. Change-Id: I1eee42ba82c59a72430bf507ea80408c553be889 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_glib.cpp')
-rw-r--r--src/corelib/kernel/qeventdispatcher_glib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_glib.cpp b/src/corelib/kernel/qeventdispatcher_glib.cpp
index 86f6b0b4aa..3964c1ceac 100644
--- a/src/corelib/kernel/qeventdispatcher_glib.cpp
+++ b/src/corelib/kernel/qeventdispatcher_glib.cpp
@@ -411,7 +411,7 @@ bool QEventDispatcherGlib::processEvents(QEventLoop::ProcessEventsFlags flags)
{
Q_D(QEventDispatcherGlib);
- const bool canWait = (flags & QEventLoop::WaitForMoreEvents);
+ const bool canWait = flags.testAnyFlag(QEventLoop::WaitForMoreEvents);
if (canWait)
emit aboutToBlock();
else