summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-05-18 20:00:23 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-23 23:30:18 +0200
commitc00bd8d6776e95283831db1c14b7d23ac6be5840 (patch)
treeb91058c2400d219ccbdd51c83684f09375d83c7c /src/corelib/io
parent6d65b2cc8c5d86d2351e27c158e3b18519e1fcb5 (diff)
Use QStringList::join(QChar) overload where applicable [QtCore]
This is an automated change performing the following replacements: join\("(.)"\) -> join('\1') join\(QLatin1String\("(.)"\)\) -> join(QLatin1Char('\1')) join\(QStringLiteral\("(.)"\)\) -> join(QLatin1Char('\1')) Change-Id: I81c378ef6aeeada5e116f1394cc9fc67f901ffd6 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qdir.cpp6
-rw-r--r--src/corelib/io/qiodevice.cpp2
-rw-r--r--src/corelib/io/qsettings_mac.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/io/qdir.cpp b/src/corelib/io/qdir.cpp
index dd3c10dadd..5463adaeb9 100644
--- a/src/corelib/io/qdir.cpp
+++ b/src/corelib/io/qdir.cpp
@@ -2255,7 +2255,7 @@ QDebug operator<<(QDebug debug, QDir::Filters filters)
if (filters & QDir::System) flags << QLatin1String("System");
if (filters & QDir::CaseSensitive) flags << QLatin1String("CaseSensitive");
}
- debug << "QDir::Filters(" << qPrintable(flags.join(QLatin1String("|"))) << ')';
+ debug << "QDir::Filters(" << qPrintable(flags.join(QLatin1Char('|'))) << ')';
return debug;
}
@@ -2278,7 +2278,7 @@ static QDebug operator<<(QDebug debug, QDir::SortFlags sorting)
if (sorting & QDir::Type) flags << QLatin1String("Type");
debug << "QDir::SortFlags(" << qPrintable(type)
<< '|'
- << qPrintable(flags.join(QLatin1String("|"))) << ')';
+ << qPrintable(flags.join(QLatin1Char('|'))) << ')';
}
return debug;
}
@@ -2287,7 +2287,7 @@ QDebug operator<<(QDebug debug, const QDir &dir)
{
debug.maybeSpace() << "QDir(" << dir.path()
<< ", nameFilters = {"
- << qPrintable(dir.nameFilters().join(QLatin1String(",")))
+ << qPrintable(dir.nameFilters().join(QLatin1Char(',')))
<< "}, "
<< dir.sorting()
<< ','
diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp
index aee240b88c..6901bff68a 100644
--- a/src/corelib/io/qiodevice.cpp
+++ b/src/corelib/io/qiodevice.cpp
@@ -1687,7 +1687,7 @@ QDebug operator<<(QDebug debug, QIODevice::OpenMode modes)
modeList << QLatin1String("Unbuffered");
}
qSort(modeList);
- debug << modeList.join(QLatin1String("|"));
+ debug << modeList.join(QLatin1Char('|'));
debug << ')';
return debug;
}
diff --git a/src/corelib/io/qsettings_mac.cpp b/src/corelib/io/qsettings_mac.cpp
index 8957b1bb5c..4f6902d945 100644
--- a/src/corelib/io/qsettings_mac.cpp
+++ b/src/corelib/io/qsettings_mac.cpp
@@ -399,7 +399,7 @@ QMacSettingsPrivate::QMacSettingsPrivate(QSettings::Scope scope, const QString &
const QString &bundle_identifier_component = bundle_identifier_components.at(i);
bundle_identifier_components_reversed.push_front(bundle_identifier_component);
}
- domainName = bundle_identifier_components_reversed.join(QLatin1String("."));
+ domainName = bundle_identifier_components_reversed.join(QLatin1Char('.'));
}
}
}