Fix mix-guided use of const reference variable

It needs to be a mutable value variable to be std::move()d.

Change-Id: I9d78b2975f8964e7a7eb06771b0069d9b9e6661e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 8ec07b4afc93160e15c1aaa746fd027f2d37f70e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Edward Welbourne 2021-04-28 15:19:27 +02:00 committed by Qt Cherry-pick Bot
parent 2ac6738be1
commit a9ef91537b

View File

@ -875,7 +875,7 @@ QTzTimeZoneCacheEntry QTzTimeZoneCache::fetchEntry(const QByteArray &ianaId)
void QTzTimeZonePrivate::init(const QByteArray &ianaId)
{
static QTzTimeZoneCache tzCache;
const auto &entry = tzCache.fetchEntry(ianaId);
auto entry = tzCache.fetchEntry(ianaId);
if (entry.m_tranTimes.isEmpty() && entry.m_posixRule.isEmpty())
return; // Invalid after all !