From 5be2b14a2553f2aa0b64d1f88494b0561739d964 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Wed, 27 Mar 2024 15:27:04 -0700 Subject: Move where appropriate Clang-tidy-18 has new checks that can find more cases where we've missed an opportunity to std::move. Fix them. Tested: Logging works, unit tests pass. Change-Id: I0cf58204ce7265828693b787a7b3a16484c3d5e5 Signed-off-by: Ed Tanous --- redfish-core/include/utils/json_utils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'redfish-core') diff --git a/redfish-core/include/utils/json_utils.hpp b/redfish-core/include/utils/json_utils.hpp index c8af2d15db..0f4ba06a14 100644 --- a/redfish-core/include/utils/json_utils.hpp +++ b/redfish-core/include/utils/json_utils.hpp @@ -542,7 +542,8 @@ bool readJson(nlohmann::json& jsonRequest, crow::Response& res, messages::unrecognizedRequestBody(res); return false; } - return readJsonObject(*obj, res, key, first, in...); + return readJsonObject(*obj, res, key, std::forward(first), + std::forward(in)...); } inline std::optional -- cgit v1.2.3