summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-12-25 19:26:55 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-12-31 18:44:45 +0000
commite9ec0ff4bb420fefaec96b8eb1b030aa017d6b00 (patch)
treebf583ab7ad2580013dc17a5f2fc247fd0e3f295f /src
parent50a8fdfd73a35574870bab464e8c852dc6ade5d4 (diff)
QTimeZone: replace a Q_FOREACH loop with QList::op+=
Change-Id: I6d2cede8126346f7cd4425dafc07c794c2a7bc1d Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qtimezoneprivate_win.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/tools/qtimezoneprivate_win.cpp b/src/corelib/tools/qtimezoneprivate_win.cpp
index a9bb3aa3b5..33476033ff 100644
--- a/src/corelib/tools/qtimezoneprivate_win.cpp
+++ b/src/corelib/tools/qtimezoneprivate_win.cpp
@@ -638,8 +638,7 @@ QList<QByteArray> QWinTimeZonePrivate::availableTimeZoneIds() const
{
QList<QByteArray> result;
foreach (const QByteArray &winId, availableWindowsIds()) {
- foreach (const QByteArray &ianaId, windowsIdToIanaIds(winId))
- result << ianaId;
+ result += windowsIdToIanaIds(winId);
}
std::sort(result.begin(), result.end());
result.erase(std::unique(result.begin(), result.end()), result.end());