QDebug: code tidies

Use the newly introduced QFlags::toInt().

Change-Id: I45337a299d20738767461c36641519a3e9b625d7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2021-05-02 01:45:51 +02:00
parent 9887f32df9
commit 6e04664a95

View File

@ -398,7 +398,7 @@ qt_QMetaEnum_flagDebugOperator_helper(QDebug debug, const QFlags<T> &flags)
{ {
const QMetaObject *obj = qt_getEnumMetaObject(T()); const QMetaObject *obj = qt_getEnumMetaObject(T());
const char *name = qt_getEnumName(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> template <class T>