QTimeZonePrivate: avoid needless allocation

We are already have proper compare operator

Change-Id: Ie0c587f0f5c784197f52c992b40ee0fdc366aeb9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Anton Kudryavtsev 2024-02-26 17:36:33 +03:00
parent bdb2f20154
commit a23173bd14

View File

@ -725,9 +725,7 @@ QString QTimeZonePrivate::isoOffsetFormat(int offsetFromUtc, QTimeZone::NameType
QByteArray QTimeZonePrivate::ianaIdToWindowsId(const QByteArray &id)
{
// We don't have a Latin1/UTF-8 mixed comparator (QTBUG-100234),
// so we have to allocate here...
const auto idUtf8 = QString::fromUtf8(id);
const auto idUtf8 = QUtf8StringView(id);
for (const ZoneData &data : zoneDataTable) {
for (auto l1 : data.ids()) {