From 49885d2bbaabe000226d880d53fafe93aba8f651 Mon Sep 17 00:00:00 2001 From: Hasnain Virk Date: Tue, 9 Jan 2018 16:40:25 +0200 Subject: [PATCH] Changing MLME data access methods to inline As indicated in one of the reveiws, it makes more sense to change the data access methods to inline as they are just one liners. --- features/lorawan/lorastack/mac/LoRaMacMlme.cpp | 10 ---------- features/lorawan/lorastack/mac/LoRaMacMlme.h | 11 ++++++++--- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/features/lorawan/lorastack/mac/LoRaMacMlme.cpp b/features/lorawan/lorastack/mac/LoRaMacMlme.cpp index e42f4eb28f..00a6e5455f 100644 --- a/features/lorawan/lorastack/mac/LoRaMacMlme.cpp +++ b/features/lorawan/lorastack/mac/LoRaMacMlme.cpp @@ -151,13 +151,3 @@ LoRaMacStatus_t LoRaMacMlme::set_request(MlmeReq_t *mlmeRequest, return LORAMAC_STATUS_PARAMETER_INVALID; } - -MlmeIndication_t& LoRaMacMlme::get_indication() -{ - return indication; -} - -MlmeConfirm_t& LoRaMacMlme::get_confirmation() -{ - return confirmation; -} diff --git a/features/lorawan/lorastack/mac/LoRaMacMlme.h b/features/lorawan/lorastack/mac/LoRaMacMlme.h index 978a88a5e1..6a80073201 100644 --- a/features/lorawan/lorastack/mac/LoRaMacMlme.h +++ b/features/lorawan/lorastack/mac/LoRaMacMlme.h @@ -78,14 +78,19 @@ public: * * @return a reference to MLME confirm data structure */ - MlmeConfirm_t& get_confirmation(); + inline MlmeConfirm_t& get_confirmation() + { + return confirmation; + } /** Grants access to MLME indication data * * @return a reference to MLME indication data structure */ - MlmeIndication_t& get_indication(); - + inline MlmeIndication_t& get_indication() + { + return indication; + } private: