diff options
author | Patrick Venture <venture@google.com> | 2019-05-15 12:37:42 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-05-15 12:37:42 -0700 |
commit | 8752cdf7a40511b19af0a69cd85425aff9d9e842 (patch) | |
tree | 074eebecc0d4098fd82789092d876d72ef2d1cee /src | |
parent | 800f06df98660bb215f17725ae8a1bfa96bfb91a (diff) | |
download | ipmi-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/ipmiblob/blob_handler.hpp | 2 |
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. |