diff --git a/src/lib/opensearch/searchenginesmanager.cpp b/src/lib/opensearch/searchenginesmanager.cpp index 20a549e60..c29d5a59b 100644 --- a/src/lib/opensearch/searchenginesmanager.cpp +++ b/src/lib/opensearch/searchenginesmanager.cpp @@ -215,7 +215,7 @@ void SearchEnginesManager::engineChangedImage() return; } - for (Engine e : std::as_const(m_allEngines)) { + for (const Engine &e : std::as_const(m_allEngines)) { if (e.name == engine->name() && e.url.contains(engine->searchUrl(QSL("%s")).toString()) && !engine->image().isNull() diff --git a/src/lib/plugins/qml/api/cookies/qmlcookies.cpp b/src/lib/plugins/qml/api/cookies/qmlcookies.cpp index f707b35b0..92a50eeca 100644 --- a/src/lib/plugins/qml/api/cookies/qmlcookies.cpp +++ b/src/lib/plugins/qml/api/cookies/qmlcookies.cpp @@ -74,7 +74,7 @@ QList QmlCookies::getAll(const QVariantMap &map) const bool secure = map.value(QSL("secure")).toBool(); const bool session = map.value(QSL("session")).toBool(); QVector cookies = mApp->cookieJar()->getAllCookies(); - for (QNetworkCookie cookie : std::as_const(cookies)) { + for (const QNetworkCookie &cookie : std::as_const(cookies)) { if ((!map.contains(QSL("name")) || QString::fromUtf8(cookie.name()) == name) && (!map.contains(QSL("url")) || cookie.domain() == url) && (!map.contains(QSL("path")) || cookie.path() == path)