summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-02 01:45:51 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-12 23:04:57 +0200
commit6e04664a9588d79305b0b521a17dd5da481cc0f6 (patch)
tree817c152d7575ac0fe74a6463b4b7abde006e8ebe /src
parent9887f32df91c579f5e891d16d9be9d9e3b8c4e17 (diff)
QDebug: code tidies
Use the newly introduced QFlags::toInt(). Change-Id: I45337a299d20738767461c36641519a3e9b625d7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qdebug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qdebug.h b/src/corelib/io/qdebug.h
index 5e23c76cba..29da386c1b 100644
--- a/src/corelib/io/qdebug.h
+++ b/src/corelib/io/qdebug.h
@@ -398,7 +398,7 @@ qt_QMetaEnum_flagDebugOperator_helper(QDebug debug, const QFlags<T> &flags)
{
const QMetaObject *obj = qt_getEnumMetaObject(T());
const char *name = qt_getEnumName(T());
- return qt_QMetaEnum_flagDebugOperator(debug, quint64(flags), obj, name);
+ return qt_QMetaEnum_flagDebugOperator(debug, flags.toInt(), obj, name);
}
template <class T>