mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
use single assignment in qDBusGenerateMetaObjectXml()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
b7ee17ac66
commit
0a856d5385
1 changed files with 4 additions and 6 deletions
|
@ -233,12 +233,11 @@ QString qDBusGenerateMetaObjectXml(QString interface, const QMetaObject *mo,
|
|||
// generate the interface name from the meta object
|
||||
interface = qDBusInterfaceFromMetaObject(mo);
|
||||
|
||||
QString xml;
|
||||
int idx = mo->indexOfClassInfo(QCLASSINFO_DBUS_INTROSPECTION);
|
||||
if (idx >= mo->classInfoOffset())
|
||||
return QString::fromUtf8(mo->classInfo(idx).value());
|
||||
else
|
||||
xml = generateInterfaceXml(mo, flags, base->methodCount(), base->propertyCount());
|
||||
|
||||
QString xml = generateInterfaceXml(mo, flags, base->methodCount(), base->propertyCount());
|
||||
|
||||
if (xml.isEmpty())
|
||||
return QString(); // don't add an empty interface
|
||||
|
@ -281,12 +280,11 @@ QString qDBusGenerateMetaObjectXml(QString interface, const QMetaObject *mo, con
|
|||
}
|
||||
}
|
||||
|
||||
QString xml;
|
||||
int idx = mo->indexOfClassInfo(QCLASSINFO_DBUS_INTROSPECTION);
|
||||
if (idx >= mo->classInfoOffset())
|
||||
return QString::fromUtf8(mo->classInfo(idx).value());
|
||||
else
|
||||
xml = generateInterfaceXml(mo, flags, base->methodCount(), base->propertyCount());
|
||||
|
||||
QString xml = generateInterfaceXml(mo, flags, base->methodCount(), base->propertyCount());
|
||||
|
||||
if (xml.isEmpty())
|
||||
return QString(); // don't add an empty interface
|
||||
|
|
Loading…
Add table
Reference in a new issue