diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-05-18 20:00:23 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-10 00:27:13 +0200 |
commit | ecf7f0d9543c05edd2439df9a57268e4049ebee4 (patch) | |
tree | bf22398b92beb91cf6fab9dfd5fbefd420bd3751 | |
parent | 56cb4bc01feba9c562e94db51cd3232ad2572617 (diff) |
Use QStringList::join(QChar) overload where applicable [QtDBus]
This is an automated change performing the following replacements:
join\("(.)"\) -> join('\1')
join\(QLatin1String\("(.)"\)\) -> join(QLatin1Char('\1'))
join\(QStringLiteral\("(.)"\)\) -> join(QLatin1Char('\1'))
Change-Id: I807b0e88ac71a0cb367fb4170cca8f2cb0ad43f3
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
-rw-r--r-- | src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp | 2 | ||||
-rw-r--r-- | tests/auto/dbus/qdbusabstractadaptor/tst_qdbusabstractadaptor.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp index ef81aeae0c..6ddd095e8e 100644 --- a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp +++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp @@ -142,7 +142,7 @@ static void parseCmdLine(QStringList args) args.takeFirst(); commandLine = QLatin1String(PROGRAMNAME " "); - commandLine += args.join(QLatin1String(" ")); + commandLine += args.join(QLatin1Char(' ')); int i = 0; while (i < args.count()) { diff --git a/tests/auto/dbus/qdbusabstractadaptor/tst_qdbusabstractadaptor.cpp b/tests/auto/dbus/qdbusabstractadaptor/tst_qdbusabstractadaptor.cpp index 7e31f6091c..fef15c3317 100644 --- a/tests/auto/dbus/qdbusabstractadaptor/tst_qdbusabstractadaptor.cpp +++ b/tests/auto/dbus/qdbusabstractadaptor/tst_qdbusabstractadaptor.cpp @@ -1043,7 +1043,7 @@ void tst_QDBusAbstractAdaptor::readAllPropertiesEmptyInterface() } QVERIFY2(allprops.isEmpty(), - qPrintable(QStringList(allprops.keys()).join(" "))); + qPrintable(QStringList(allprops.keys()).join(' '))); } else { for ( ; it != expectedProperties.constEnd(); ++it) QVERIFY2(!allprops.contains(it.key()), qPrintable(it.key())); @@ -1549,7 +1549,7 @@ void tst_QDBusAbstractAdaptor::readAllPropertiesEmptyInterfacePeer() } QVERIFY2(allprops.isEmpty(), - qPrintable(QStringList(allprops.keys()).join(" "))); + qPrintable(QStringList(allprops.keys()).join(' '))); } else { for ( ; it != expectedProperties.constEnd(); ++it) QVERIFY2(!allprops.contains(it.key()), qPrintable(it.key())); |