summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/openbmc_dbus_rest.hpp6
-rw-r--r--redfish-core/lib/account_service.hpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index a4cccb167b..c8673d19a9 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -466,7 +466,7 @@ std::vector<std::string> dbusArgSplit(const std::string &string)
{
return ret;
}
- ret.push_back("");
+ ret.emplace_back("");
int containerDepth = 0;
for (std::string::const_iterator character = string.begin();
@@ -488,7 +488,7 @@ std::vector<std::string> dbusArgSplit(const std::string &string)
{
if (character + 1 != string.end())
{
- ret.push_back("");
+ ret.emplace_back("");
}
}
break;
@@ -497,7 +497,7 @@ std::vector<std::string> dbusArgSplit(const std::string &string)
{
if (character + 1 != string.end())
{
- ret.push_back("");
+ ret.emplace_back("");
}
}
break;
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp
index 7f34949fae..07efeb5b39 100644
--- a/redfish-core/lib/account_service.hpp
+++ b/redfish-core/lib/account_service.hpp
@@ -488,8 +488,8 @@ inline void getLDAPConfigData(const std::string& ldapType,
}
}
- confData.groupRoleList.push_back(std::make_pair(
- object.first.str, roleMapData));
+ confData.groupRoleList.emplace_back(
+ object.first.str, roleMapData);
}
}
}