mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 19:12:11 +01:00
Constify things a bit
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
81eaf7c32f
commit
b3e5c716dd
|
@ -70,7 +70,7 @@ void HTML5PermissionsDialog::showFeaturePermissions(QWebEnginePage::Feature feat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (auto siteData : m_data[feature]) {
|
for (const auto &siteData : m_data[feature]) {
|
||||||
createEntry(siteData);
|
createEntry(siteData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ void HTML5PermissionsDialog::featureIndexChanged()
|
||||||
showFeaturePermissions(currentFeature());
|
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)) {
|
if (m_removed.contains(currentFeature()) && m_removed[currentFeature()].contains(siteData.id)) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -50,7 +50,7 @@ private:
|
||||||
int id;
|
int id;
|
||||||
QString host;
|
QString host;
|
||||||
};
|
};
|
||||||
void createEntry(SiteData &siteData);
|
void createEntry(const SiteData &siteData);
|
||||||
|
|
||||||
QWebEnginePage::Feature currentFeature() const;
|
QWebEnginePage::Feature currentFeature() const;
|
||||||
QWebEnginePage::Feature indexToFeature(const int index) const;
|
QWebEnginePage::Feature indexToFeature(const int index) const;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user