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
361361 virtual bool updateRwSetting (const std::string& name, const SettingsUpdate& update_function) = 0;
362362
363363 // ! 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;
365365
366366 // ! Delete a given setting in <datadir>/settings.json.
367367 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
828828 // Now dump value to disk if requested
829829 return *action == interfaces::SettingsAction::SKIP_WRITE || args ().WriteSettingsFile ();
830830 }
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
832832 {
833833 if (value.isNull ()) return deleteRwSettings (name, write);
834834 return updateRwSetting (name, [&](common::SettingsValue& settings) {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ bool VerifyWallets(WalletContext& context)
6969 // Pass write=false because no need to write file and probably
7070 // better not to. If unnamed wallet needs to be added next startup
7171 // 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 );
7373 }
7474 }
7575
You can’t perform that action at this time.
0 commit comments