cleanup: transition to emplace_back where possible
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I41ea0bcabe0dd71111fa96b5e1baf12d3e79d129
diff --git a/bmc/main.cpp b/bmc/main.cpp
index 5282831..031871f 100644
--- a/bmc/main.cpp
+++ b/bmc/main.cpp
@@ -136,8 +136,8 @@
for (auto& config : configsFromJson)
{
- supportedFirmware.push_back(
- std::move(HandlerPack(config.blobId, std::move(config.handler))));
+ supportedFirmware.emplace_back(config.blobId,
+ std::move(config.handler));
actionPacks[config.blobId] = std::move(config.actions);
std::fprintf(stderr, "config loaded: %s\n", config.blobId.c_str());