summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-05-15 12:37:42 -0700
committerPatrick Venture <venture@google.com>2019-05-15 12:37:42 -0700
commit8752cdf7a40511b19af0a69cd85425aff9d9e842 (patch)
tree074eebecc0d4098fd82789092d876d72ef2d1cee
parent800f06df98660bb215f17725ae8a1bfa96bfb91a (diff)
downloadipmi-blob-tool-8752cdf7a40511b19af0a69cd85425aff9d9e842.tar.gz
ipmi-blob-tool-8752cdf7a40511b19af0a69cd85425aff9d9e842.zip
blob_handler: make commit data parameter optional
Make the commit data parameter optional by defaulting it to an empty vector. This is less code than using std::optional for this. Change-Id: Icd953e63fc68a658b29fff5a132e264f1aee5bbc Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--src/ipmiblob/blob_handler.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipmiblob/blob_handler.hpp b/src/ipmiblob/blob_handler.hpp
index 200dfd5..5e24b91 100644
--- a/src/ipmiblob/blob_handler.hpp
+++ b/src/ipmiblob/blob_handler.hpp
@@ -63,7 +63,7 @@ class BlobHandler : public BlobInterface
* @throws BlobException.
*/
void commit(std::uint16_t session,
- const std::vector<std::uint8_t>& bytes) override;
+ const std::vector<std::uint8_t>& bytes = {}) override;
/**
* @throws BlobException.
OpenPOWER on IntegriCloud