1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Constify things a bit

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-08-16 09:39:43 +02:00
parent 81eaf7c32f
commit b3e5c716dd
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;