Use QStringList::join(QChar) overload where applicable [QtGui]
authorMarc Mutz <marc.mutz@kdab.com>
Fri, 18 May 2012 18:00:23 +0000 (20:00 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 7 Sep 2012 16:41:22 +0000 (18:41 +0200)
This is an automated change performing the following replacements:
                    join\("(.)"\) -> join('\1')
  join\(QLatin1String\("(.)"\)\)  -> join(QLatin1Char('\1'))
  join\(QStringLiteral\("(.)"\)\) -> join(QLatin1Char('\1'))

Change-Id: Id8d43c1b1ca9cd3aa0b4eedca6709b6287a9bc98
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/gui/accessible/qaccessible.cpp
src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp
src/platformsupport/input/evdevmouse/qevdevmousemanager.cpp

index a450801..714672d 100644 (file)
@@ -1190,7 +1190,7 @@ Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleInterface *iface)
             stateStrings << QLatin1String("invisible");
 
         if (!stateStrings.isEmpty())
-            d << stateStrings.join(QLatin1String("|"));
+            d << stateStrings.join(QLatin1Char('|'));
 
         if (!st.invisible)
             d << "rect=" << iface->rect();
index 39d07bc..c2d0096 100644 (file)
@@ -69,7 +69,7 @@ QEvdevKeyboardManager::QEvdevKeyboardManager(const QString &key, const QString &
     }
 
     // build new specification without /dev/ elements
-    m_spec = args.join(QLatin1String(":"));
+    m_spec = args.join(QLatin1Char(':'));
 
     // add all keyboards for devices specified in the argument list
     foreach (const QString &device, devices)
index 677e06b..add6cfd 100644 (file)
@@ -75,7 +75,7 @@ QEvdevMouseManager::QEvdevMouseManager(const QString &key, const QString &specif
     }
 
     // build new specification without /dev/ elements
-    m_spec = args.join(QLatin1String(":"));
+    m_spec = args.join(QLatin1Char(':'));
 
     // add all mice for devices specified in the argument list
     foreach (const QString &device, devices)