cleanup: transition to emplace_back where possible
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I41ea0bcabe0dd71111fa96b5e1baf12d3e79d129
diff --git a/bmc/test/firmware_multiplebundle_unittest.cpp b/bmc/test/firmware_multiplebundle_unittest.cpp
index ae7924f..20c63a9 100644
--- a/bmc/test/firmware_multiplebundle_unittest.cpp
+++ b/bmc/test/firmware_multiplebundle_unittest.cpp
@@ -33,16 +33,15 @@
std::unique_ptr<ImageHandlerInterface> image =
std::make_unique<ImageHandlerMock>();
hashImageMock = reinterpret_cast<ImageHandlerMock*>(image.get());
- blobs.push_back(std::move(HandlerPack(hashBlobId, std::move(image))));
+ blobs.emplace_back(hashBlobId, std::move(image));
image = std::make_unique<ImageHandlerMock>();
staticImageMock = reinterpret_cast<ImageHandlerMock*>(image.get());
- blobs.push_back(
- std::move(HandlerPack(staticLayoutBlobId, std::move(image))));
+ blobs.emplace_back(staticLayoutBlobId, std::move(image));
image = std::make_unique<ImageHandlerMock>();
biosImageMock = reinterpret_cast<ImageHandlerMock*>(image.get());
- blobs.push_back(std::move(HandlerPack(biosBlobId, std::move(image))));
+ blobs.emplace_back(biosBlobId, std::move(image));
std::unique_ptr<TriggerableActionInterface> bmcPrepareMock =
std::make_unique<TriggerMock>();