diff options
Diffstat (limited to 'redfish-core/include/utils/collection.hpp')
-rw-r--r-- | redfish-core/include/utils/collection.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/include/utils/collection.hpp b/redfish-core/include/utils/collection.hpp index f2f0669d11..05e4b4df2f 100644 --- a/redfish-core/include/utils/collection.hpp +++ b/redfish-core/include/utils/collection.hpp @@ -80,7 +80,7 @@ inline void crow::utility::appendUrlPieces(url, leaf); nlohmann::json::object_t member; member["@odata.id"] = std::move(url); - members.push_back(std::move(member)); + members.emplace_back(std::move(member)); } aResp->res.jsonValue["Members@odata.count"] = members.size(); }); |