Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
controller: Change database cetification buffer return value type
Browse files Browse the repository at this point in the history
Removed the reference from the return value type of the certification
buffer allocate and get function.

Signed-off-by: Moran Shoeg <[email protected]>
  • Loading branch information
morantr committed Oct 31, 2019
1 parent 7021562 commit 865e1f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/src/beerocks/master/db/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ class db {
//
// certification
//
std::shared_ptr<uint8_t> &get_certification_tx_buffer() { return certification_tx_buffer; };
std::shared_ptr<uint8_t> &allocate_certification_tx_buffer()
std::shared_ptr<uint8_t> get_certification_tx_buffer() { return certification_tx_buffer; };
std::shared_ptr<uint8_t> allocate_certification_tx_buffer()
{
return (certification_tx_buffer =
std::shared_ptr<uint8_t>(new uint8_t[beerocks::message::MESSAGE_BUFFER_LENGTH],
Expand Down

0 comments on commit 865e1f4

Please sign in to comment.