Force qdbusxml2cpp to use QStringLiteral rather than QLatin1String
Change-Id: I6db4c80a14466b51d73c2704e8fc2e2e8a8a6b02 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
9b121e5579
commit
60d0b900d7
|
|
@ -705,9 +705,9 @@ static void writeProxy(const QString &filename, const QDBusIntrospection::Interf
|
|||
|
||||
if (isNoReply)
|
||||
hs << " callWithArgumentList(QDBus::NoBlock, "
|
||||
<< "QLatin1String(\"" << method.name << "\"), argumentList);" << endl;
|
||||
<< "QStringLiteral(\"" << method.name << "\"), argumentList);" << endl;
|
||||
else
|
||||
hs << " return asyncCallWithArgumentList(QLatin1String(\""
|
||||
hs << " return asyncCallWithArgumentList(QStringLiteral(\""
|
||||
<< method.name << "\"), argumentList);" << endl;
|
||||
|
||||
// close the function:
|
||||
|
|
@ -737,7 +737,7 @@ static void writeProxy(const QString &filename, const QDBusIntrospection::Interf
|
|||
}
|
||||
|
||||
hs << " QDBusMessage reply = callWithArgumentList(QDBus::Block, "
|
||||
<< "QLatin1String(\"" << method.name << "\"), argumentList);" << endl;
|
||||
<< "QStringLiteral(\"" << method.name << "\"), argumentList);" << endl;
|
||||
|
||||
argPos++;
|
||||
hs << " if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == "
|
||||
|
|
|
|||
Loading…
Reference in New Issue