From 24b33f6c10072826cff6ab66b5fb4f1eb653b23e Mon Sep 17 00:00:00 2001 From: Moran Shoeg Date: Thu, 7 Nov 2019 14:21:21 +0200 Subject: [PATCH] controller: Change database cetification buffer return value type Removed the reference from the return value type of the certification buffer allocate and get function. Signed-off-by: Moran Shoeg --- controller/src/beerocks/master/db/db.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/src/beerocks/master/db/db.h b/controller/src/beerocks/master/db/db.h index 3f068ef2fc..8ca77c384a 100644 --- a/controller/src/beerocks/master/db/db.h +++ b/controller/src/beerocks/master/db/db.h @@ -503,8 +503,8 @@ class db { // // certification // - std::shared_ptr &get_certification_tx_buffer() { return certification_tx_buffer; }; - std::shared_ptr &allocate_certification_tx_buffer() + std::shared_ptr get_certification_tx_buffer() { return certification_tx_buffer; }; + std::shared_ptr allocate_certification_tx_buffer() { return (certification_tx_buffer = std::shared_ptr(new uint8_t[beerocks::message::MESSAGE_BUFFER_LENGTH],