QTimeZone: replace a Q_FOREACH loop with QList::op+=
Change-Id: I6d2cede8126346f7cd4425dafc07c794c2a7bc1d Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>bb10
parent
50a8fdfd73
commit
e9ec0ff4bb
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue