Commit 506d4087 authored by Nicolas Fella's avatar Nicolas Fella

Fix container detach

parent 6cd7ad3b
......@@ -152,7 +152,7 @@ void QueryController::loadLocationsFromCache()
{
m_cachedLocationsJson = QJsonDocument::fromJson(m_locationCacheFile.readAll()).array();
for (const QJsonValue& val : m_cachedLocationsJson) {
for (const QJsonValue& val : qAsConst(m_cachedLocationsJson)) {
m_cachedLocations.append(QVariant::fromValue(KPublicTransport::Location::fromJson(val.toObject())));
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment