chain: move new settings safely in overwriteRwSetting

This commit is contained in:
ismaelsadeeq 2024-09-05 20:40:01 +01:00
parent 1c409004c8
commit 1e9e735670
No known key found for this signature in database
GPG key ID: 0E3908F364989888
3 changed files with 3 additions and 3 deletions

View file

@ -828,7 +828,7 @@ public:
// Now dump value to disk if requested
return *action == interfaces::SettingsAction::SKIP_WRITE || args().WriteSettingsFile();
}
bool overwriteRwSetting(const std::string& name, common::SettingsValue& value, bool write) override
bool overwriteRwSetting(const std::string& name, common::SettingsValue value, bool write) override
{
if (value.isNull()) return deleteRwSettings(name, write);
return updateRwSetting(name, [&](common::SettingsValue& settings) {