diff options
author | Ed Tanous <ed@tanous.net> | 2024-03-28 01:27:04 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2024-04-01 20:29:43 +0300 |
commit | 5be2b14a2553f2aa0b64d1f88494b0561739d964 (patch) | |
tree | 23226c6979b8ee0757b62ef890c54ce449533023 /redfish-core/include | |
parent | ddf3564e48bcee32dff1eff7a985a084be529615 (diff) | |
download | bmcweb-5be2b14a2553f2aa0b64d1f88494b0561739d964.tar.xz |
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 <ed@tanous.net>
Diffstat (limited to 'redfish-core/include')
-rw-r--r-- | redfish-core/include/utils/json_utils.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<FirstType>(first), + std::forward<UnpackTypes&&>(in)...); } inline std::optional<nlohmann::json::object_t> |