Use QLatin1String in AtSpiAdaptor::applicationInterface
authorJosé Millán Soto <fid@gpul.org>
Mon, 15 Oct 2012 12:10:56 +0000 (14:10 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 15 Oct 2012 15:02:24 +0000 (17:02 +0200)
Using QLatin1String in string constants which were not using it.

Change-Id: I3aa4b7104cf3d1765874e0ee9a6fd23aadd8d671
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
src/platformsupport/linuxaccessibility/atspiadaptor.cpp

index f4960fc..33c0750 100644 (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);
     }