fix more push vs emplace calls
It seems like clang-tidy doesn't catch every place that an emplace could
be used instead of a push. Use a few grep/sed pairs to find and fix up
some common patterns.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I93eaec26b8e3be240599e92b66cf54947073dc4c
diff --git a/redfish-core/lib/certificate_service.hpp b/redfish-core/lib/certificate_service.hpp
index 4e030d2..9aa2145 100644
--- a/redfish-core/lib/certificate_service.hpp
+++ b/redfish-core/lib/certificate_service.hpp
@@ -725,7 +725,7 @@
{
if (optKeyUsage->empty())
{
- optKeyUsage->push_back("ServerAuthentication");
+ optKeyUsage->emplace_back("ServerAuthentication");
}
else if (optKeyUsage->size() == 1)
{
@@ -748,7 +748,7 @@
{
if (optKeyUsage->empty())
{
- optKeyUsage->push_back("ClientAuthentication");
+ optKeyUsage->emplace_back("ClientAuthentication");
}
else if (optKeyUsage->size() == 1)
{