bmc: move transports vector into handler object
Move the transport vector to the firmware handler object.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ic64b56b95ec52d4bbeb7e12ac26d0cc238363e42
diff --git a/bmc/firmware_handler.cpp b/bmc/firmware_handler.cpp
index 7d896d1..bc9ff84 100644
--- a/bmc/firmware_handler.cpp
+++ b/bmc/firmware_handler.cpp
@@ -38,7 +38,7 @@
std::unique_ptr<blobs::GenericBlobInterface>
FirmwareBlobHandler::CreateFirmwareBlobHandler(
std::vector<HandlerPack>&& firmwares,
- const std::vector<DataHandlerPack>& transports, ActionMap&& actionPacks)
+ std::vector<DataHandlerPack>&& transports, ActionMap&& actionPacks)
{
/* There must be at least one in addition to the hash blob handler. */
if (firmwares.size() < 2)
@@ -66,8 +66,9 @@
return nullptr;
}
- return std::make_unique<FirmwareBlobHandler>(
- std::move(firmwares), blobs, transports, std::move(actionPacks));
+ return std::make_unique<FirmwareBlobHandler>(std::move(firmwares), blobs,
+ std::move(transports),
+ std::move(actionPacks));
}
/* Check if the path is in our supported list (or active list). */