diff options
-rw-r--r-- | api/direct_bt/ATTPDUTypes.hpp | 2 | ||||
-rw-r--r-- | src/direct_bt/ATTPDUTypes.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/api/direct_bt/ATTPDUTypes.hpp b/api/direct_bt/ATTPDUTypes.hpp index f77a06cb..ad0e0c4f 100644 --- a/api/direct_bt/ATTPDUTypes.hpp +++ b/api/direct_bt/ATTPDUTypes.hpp @@ -352,7 +352,7 @@ namespace direct_bt { * Returned memory reference is managed by caller (delete etc) * </p> */ - static AttPDUMsg* getSpecialized(const uint8_t * buffer, int const buffer_size); + static AttPDUMsg* getSpecialized(const uint8_t * buffer, int const buffer_size) noexcept; /** Persistent memory, w/ ownership ..*/ AttPDUMsg(const uint8_t* source, const int size) diff --git a/src/direct_bt/ATTPDUTypes.cpp b/src/direct_bt/ATTPDUTypes.cpp index 5276f777..82c283dd 100644 --- a/src/direct_bt/ATTPDUTypes.cpp +++ b/src/direct_bt/ATTPDUTypes.cpp @@ -114,7 +114,7 @@ std::string AttErrorRsp::getPlainErrorString(const ErrorCode errorCode) noexcept return "Error Reserved for future use"; } -AttPDUMsg* AttPDUMsg::getSpecialized(const uint8_t * buffer, int const buffer_size) { +AttPDUMsg* AttPDUMsg::getSpecialized(const uint8_t * buffer, int const buffer_size) noexcept { const uint8_t opc = *buffer; AttPDUMsg * res; switch( opc ) { |