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:
parent
81eaf7c32f
commit
b3e5c716dd
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user