QDBus: replace arg-chain with multi-arg

The arguments are all strings, so multi-arg is available without
other changes to the code. Even though insertion of a format placeholder
can be ruled out in the present case, multi-arg should be faster than
a 3-chain of arg() calls.

Change-Id: I8d030227e1bd30c56f1062a0c9dbbaae0143885f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marc Mutz 2014-01-29 14:03:11 +01:00 committed by The Qt Project
parent f530942fe4
commit 391a6627cd
1 changed files with 3 additions and 3 deletions

View File

@ -111,9 +111,9 @@ static QString generateInterfaceXml(const QMetaObject *mo, int flags, int method
continue;
retval += QString::fromLatin1(" <property name=\"%1\" type=\"%2\" access=\"%3\"")
.arg(QLatin1String(mp.name()))
.arg(QLatin1String(signature))
.arg(accessAsString(mp.isReadable(), mp.isWritable()));
.arg(QLatin1String(mp.name()),
QLatin1String(signature),
accessAsString(mp.isReadable(), mp.isWritable()));
if (QDBusMetaType::signatureToType(signature) == QVariant::Invalid) {
const char *typeName = QMetaType::typeName(typeId);