From fa471b69a9c0fda4b2ffbbe6217c07411d44d983 Mon Sep 17 00:00:00 2001 From: Merkaber Date: Wed, 31 Aug 2022 14:43:41 +0200 Subject: [PATCH] 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. --- src/mumble/JSONSerialization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mumble/JSONSerialization.cpp b/src/mumble/JSONSerialization.cpp index 55931f384..8729e440e 100644 --- a/src/mumble/JSONSerialization.cpp +++ b/src/mumble/JSONSerialization.cpp @@ -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