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

SiteSettings: Remove some compiler warnings

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2024-01-28 14:19:46 +01:00
parent 2fed44371b
commit 1bd5bd7846
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
3 changed files with 5 additions and 5 deletions

View File

@ -24,8 +24,8 @@
SiteInfoPermissionItem::SiteInfoPermissionItem(const SiteSettingsManager::Permission& a_permission, QWidget* parent)
: QWidget(parent)
, m_ui(new Ui::SiteInfoPermissionItem())
, m_hasOptionAsk(true)
, m_ui(new Ui::SiteInfoPermissionItem())
{
m_ui->setupUi(this);
setPermission(a_permission);

View File

@ -66,7 +66,7 @@ void SiteSettingsManager::loadSettings()
settings.beginGroup(QSL("Site-Settings"));
/* HTML5 Feature */
for (const auto &feature : qAsConst(supportedFeatures)) {
for (const auto &feature : std::as_const(supportedFeatures)) {
defaultFeatures[feature] = intToPermission(settings.value(featureToSqlColumn(feature), Ask).toInt());
}
@ -85,7 +85,7 @@ void SiteSettingsManager::loadSettings()
defaultAttributes[QWebEngineSettings::PlaybackRequiresUserGesture ] = Deny;
defaultAttributes[QWebEngineSettings::WebRTCPublicInterfacesOnly ] = Allow;
for (const auto &attribute : qAsConst(supportedAttribute)) {
for (const auto &attribute : std::as_const(supportedAttribute)) {
defaultAttributes[attribute] = intToPermission(settings.value(webAttributeToSqlColumn(attribute), defaultAttributes[attribute]).toInt());
}

View File

@ -38,7 +38,7 @@ public:
};
Q_ENUM(Permission);
/* Broser options */
/* Browser options */
enum PageOptions {
poAllowCookies,
poZoomLevel,
@ -73,7 +73,7 @@ public:
}
};
explicit SiteSettingsManager(QObject *parent = 0);
explicit SiteSettingsManager(QObject *parent = nullptr);
~SiteSettingsManager();
void loadSettings();