Use QLatin1String in AtSpiAdaptor::applicationInterface

Using QLatin1String in string constants which were not using it.

Change-Id: I3aa4b7104cf3d1765874e0ee9a6fd23aadd8d671
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
This commit is contained in:
José Millán Soto 2012-10-15 14:10:56 +02:00 committed by The Qt Project
parent ef1a4392c6
commit 13e106fdf6

View File

@ -1278,13 +1278,13 @@ bool AtSpiAdaptor::applicationInterface(const QAIPointer &interface, const QStri
QDBusMessage reply = message.createReply(QVariant::fromValue(QDBusVariant(QLatin1String("Qt"))));
return connection.send(reply);
}
if (function == "GetVersion") {
Q_ASSERT(message.signature() == "ss");
if (function == QLatin1String("GetVersion")) {
Q_ASSERT(message.signature() == QLatin1String("ss"));
QDBusMessage reply = message.createReply(QVariant::fromValue(QDBusVariant(QLatin1String(qVersion()))));
return connection.send(reply);
}
if (function == "GetLocale") {
Q_ASSERT(message.signature() == "u");
if (function == QLatin1String("GetLocale")) {
Q_ASSERT(message.signature() == QLatin1String("u"));
QDBusMessage reply = message.createReply(QVariant::fromValue(QLocale().name()));
return connection.send(reply);
}