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:
parent
2fed44371b
commit
1bd5bd7846
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user