File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ class Chain
361
361
virtual bool updateRwSetting (const std::string& name, const SettingsUpdate& update_function) = 0;
362
362
363
363
// ! Replace a setting in <datadir>/settings.json with a new value.
364
- virtual bool overwriteRwSetting (const std::string& name, common::SettingsValue& value, bool write = true ) = 0;
364
+ virtual bool overwriteRwSetting (const std::string& name, common::SettingsValue value, bool write = true ) = 0;
365
365
366
366
// ! Delete a given setting in <datadir>/settings.json.
367
367
virtual bool deleteRwSettings (const std::string& name, bool write = true ) = 0;
Original file line number Diff line number Diff line change @@ -828,7 +828,7 @@ class ChainImpl : public Chain
828
828
// Now dump value to disk if requested
829
829
return *action == interfaces::SettingsAction::SKIP_WRITE || args ().WriteSettingsFile ();
830
830
}
831
- bool overwriteRwSetting (const std::string& name, common::SettingsValue& value, bool write) override
831
+ bool overwriteRwSetting (const std::string& name, common::SettingsValue value, bool write) override
832
832
{
833
833
if (value.isNull ()) return deleteRwSettings (name, write);
834
834
return updateRwSetting (name, [&](common::SettingsValue& settings) {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ bool VerifyWallets(WalletContext& context)
69
69
// Pass write=false because no need to write file and probably
70
70
// better not to. If unnamed wallet needs to be added next startup
71
71
// and the setting is empty, this code will just run again.
72
- chain.overwriteRwSetting (" wallet" , wallets, /* write=*/ false );
72
+ chain.overwriteRwSetting (" wallet" , std::move ( wallets) , /* write=*/ false );
73
73
}
74
74
}
75
75
You can’t perform that action at this time.
0 commit comments