From bb03efac3840acb6e6e95e9a242a966877d26a23 Mon Sep 17 00:00:00 2001 From: Konstantin Bogdanov Date: Tue, 20 Dec 2022 03:43:53 +0100 Subject: [PATCH] Lint --- src/Access/SettingsProfileElement.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Access/SettingsProfileElement.cpp b/src/Access/SettingsProfileElement.cpp index b1fcec05cf5..4eb5c0b4152 100644 --- a/src/Access/SettingsProfileElement.cpp +++ b/src/Access/SettingsProfileElement.cpp @@ -218,13 +218,11 @@ SettingsConstraints SettingsProfileElements::toSettingsConstraints(const AccessC SettingsConstraints res{access_control}; for (const auto & elem : *this) if (!elem.setting_name.empty() && elem.isConstraint() && elem.setting_name != ALLOW_BACKUP_SETTING_NAME) - { res.set( elem.setting_name, elem.min_value, elem.max_value, elem.writability ? *elem.writability : SettingConstraintWritability::WRITABLE); - } return res; }