diff options
| author | Ed Tanous <ed.tanous@intel.com> | 2019-10-24 11:37:51 -0700 |
|---|---|---|
| committer | James Feist <james.feist@linux.intel.com> | 2019-10-29 20:50:35 +0000 |
| commit | 0f0353b66d52a3060db99495170473c5f98611ec (patch) | |
| tree | da66608099135618ff6430570df0dd0415c89451 /redfish-core/lib | |
| parent | adbe192a68306d403c2546dbc8ebf98ae5a99d7b (diff) | |
| download | bmcweb-0f0353b66d52a3060db99495170473c5f98611ec.tar.gz bmcweb-0f0353b66d52a3060db99495170473c5f98611ec.zip | |
Modernize: use emplace instead of push_back
We had a couple uses of push_back in the code that could be made more
efficient with emplace(). Use them instead.
Tested: No functional change. Needs tested.
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: I417601e416b1d0be989617a372978d52670135d8
Diffstat (limited to 'redfish-core/lib')
| -rw-r--r-- | redfish-core/lib/account_service.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp index 7f34949..07efeb5 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); } } } |

