From e002bdee395e02f064e3915693b96317c5dc63f9 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 18 May 2012 20:00:23 +0200 Subject: [PATCH] Use QStringList::join(QChar) overload where applicable [QtGui] 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 --- src/gui/accessible/qaccessible.cpp | 2 +- src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp | 2 +- src/platformsupport/input/evdevmouse/qevdevmousemanager.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/accessible/qaccessible.cpp b/src/gui/accessible/qaccessible.cpp index a450801..714672d 100644 --- a/src/gui/accessible/qaccessible.cpp +++ b/src/gui/accessible/qaccessible.cpp @@ -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(); diff --git a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp index 39d07bc..c2d0096 100644 --- a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp +++ b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardmanager.cpp @@ -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) diff --git a/src/platformsupport/input/evdevmouse/qevdevmousemanager.cpp b/src/platformsupport/input/evdevmouse/qevdevmousemanager.cpp index 677e06b..add6cfd 100644 --- a/src/platformsupport/input/evdevmouse/qevdevmousemanager.cpp +++ b/src/platformsupport/input/evdevmouse/qevdevmousemanager.cpp @@ -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) -- 2.7.4