OSDN Git Service

replace hardcoded value with enum in QDBusMetaObjectGenerator::parseProperties()
authorIvailo Monev <xakepa10@laimg.moc>
Thu, 9 Apr 2020 07:27:59 +0000 (07:27 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Thu, 9 Apr 2020 07:27:59 +0000 (07:27 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/dbus/qdbusmetaobject.cpp

index 01dba49..c51520b 100644 (file)
@@ -336,7 +336,7 @@ void QDBusMetaObjectGenerator::parseProperties()
 
         if (mp.typeName == "QDBusVariant")
             mp.flags |= 0xff << 24;
-        else if (mp.type < 0xff)
+        else if (mp.type < QVariant::Invalid)
             // encode the type in the flags
             mp.flags |= mp.type << 24;