bmc: move from data section objs to owned
Move from objects created ahead of purpose to owned objects. This is a
step towards integrating with the json support.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I738a5edd40724f17245911af1080c350f029fef1
diff --git a/bmc/firmware_handler.hpp b/bmc/firmware_handler.hpp
index 727c68e..472bb8e 100644
--- a/bmc/firmware_handler.hpp
+++ b/bmc/firmware_handler.hpp
@@ -107,7 +107,7 @@
*/
static std::unique_ptr<blobs::GenericBlobInterface>
CreateFirmwareBlobHandler(
- const std::vector<HandlerPack>& firmwares,
+ std::vector<HandlerPack>&& firmwares,
const std::vector<DataHandlerPack>& transports,
ActionMap&& actionPacks);
@@ -121,11 +121,11 @@
* @param[in] verification - pointer to object for triggering verification
* @param[in] update - point to object for triggering the update
*/
- FirmwareBlobHandler(const std::vector<HandlerPack>& firmwares,
+ FirmwareBlobHandler(std::vector<HandlerPack>&& firmwares,
const std::vector<std::string>& blobs,
const std::vector<DataHandlerPack>& transports,
std::uint16_t bitmask, ActionMap&& actionPacks) :
- handlers(firmwares),
+ handlers(std::move(firmwares)),
blobIDs(blobs), transports(transports), bitmask(bitmask),
activeImage(activeImageBlobId), activeHash(activeHashBlobId),
verifyImage(verifyBlobId), updateImage(updateBlobId), lookup(),