From 75672587b2e6ebdba26b99120eb518862a879672 Mon Sep 17 00:00:00 2001 From: George King <98261225+GeorgeK1ng@users.noreply.github.com> Date: Wed, 28 May 2025 15:32:44 +0200 Subject: [PATCH] Fix appendItems --- lib/json/JsonUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/json/JsonUtils.cpp b/lib/json/JsonUtils.cpp index ff99fe09f..b04aae0ae 100644 --- a/lib/json/JsonUtils.cpp +++ b/lib/json/JsonUtils.cpp @@ -247,7 +247,8 @@ void JsonUtils::merge(JsonNode & dest, JsonNode & source, bool ignoreOverride, b else if (node.first == "appendItems") { assert(node.second.isVector()); - std::move(dest.Vector().begin(), dest.Vector().end(), std::back_inserter(dest.Vector())); + auto& srcVec = node.second.Vector(); + std::move(srcVec.begin(), srcVec.end(), std::back_inserter(dest.Vector())); } else if (boost::algorithm::starts_with(node.first, "insert@")) {