Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerkaber <social.pio@posteo.jp>2022-08-31 15:43:41 +0300
committerRobert Adam <dev@robert-adam.de>2022-09-16 16:09:38 +0300
commitfa471b69a9c0fda4b2ffbbe6217c07411d44d983 (patch)
treec1ed248ec62813a6bcf0b97def91328a6be9c749
parentdb8b6a3310d8891e49b1158204e62417a6fff03d (diff)
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.
-rw-r--r--src/mumble/JSONSerialization.cpp2
1 files changed, 1 insertions, 1 deletions
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