diff --git a/src/lib/tools/html5permissions/html5permissionsdialog.cpp b/src/lib/tools/html5permissions/html5permissionsdialog.cpp
index 7733dc5b8..e89a9183c 100644
--- a/src/lib/tools/html5permissions/html5permissionsdialog.cpp
+++ b/src/lib/tools/html5permissions/html5permissionsdialog.cpp
@@ -70,7 +70,7 @@ void HTML5PermissionsDialog::showFeaturePermissions(QWebEnginePage::Feature feat
}
}
else {
- for (auto siteData : m_data[feature]) {
+ for (const auto &siteData : m_data[feature]) {
createEntry(siteData);
}
}
@@ -81,7 +81,7 @@ void HTML5PermissionsDialog::featureIndexChanged()
showFeaturePermissions(currentFeature());
}
-void HTML5PermissionsDialog::createEntry(HTML5PermissionsDialog::SiteData& siteData)
+void HTML5PermissionsDialog::createEntry(const HTML5PermissionsDialog::SiteData& siteData)
{
if (m_removed.contains(currentFeature()) && m_removed[currentFeature()].contains(siteData.id)) {
return;
diff --git a/src/lib/tools/html5permissions/html5permissionsdialog.h b/src/lib/tools/html5permissions/html5permissionsdialog.h
index 518953d2b..3849fe4c6 100644
--- a/src/lib/tools/html5permissions/html5permissionsdialog.h
+++ b/src/lib/tools/html5permissions/html5permissionsdialog.h
@@ -50,7 +50,7 @@ private:
int id;
QString host;
};
- void createEntry(SiteData &siteData);
+ void createEntry(const SiteData &siteData);
QWebEnginePage::Feature currentFeature() const;
QWebEnginePage::Feature indexToFeature(const int index) const;