BUILD(client): migrateSettings now takes reference

In order for migrateSettings to do what it is supposed to do, it must
takes its argument by reference and not by value.
This commit is contained in:
Merkaber 2022-08-31 14:43:41 +02:00 committed by Robert Adam
parent db8b6a3310
commit fa471b69a9

View File

@ -149,7 +149,7 @@ void to_json(nlohmann::json &j, const Settings &settings) {
j[SettingsKeys::MUMBLE_QUIT_NORMALLY_KEY] = settings.mumbleQuitNormally;
}
void migrateSettings(nlohmann::json json, int settingsVersion) {
void migrateSettings(nlohmann::json &json, int settingsVersion) {
// Perform conversions required to transform the given JSON into the format applicable to be read out by the most
// recent standards