summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-09-14 14:36:45 +0200
committerSven Gothel <[email protected]>2020-09-14 14:36:45 +0200
commitc51b362923387a99f482827ec73593eff57c9653 (patch)
treeea34b9a56ce4d3aac3aad492f5692cbcf539f912
parentbbc1f5c6f6c40dfa5d40abd802426828dd531124 (diff)
C++ noexcept: Add missing 'AttPDUMsg::getSpecialized(..)'
-rw-r--r--api/direct_bt/ATTPDUTypes.hpp2
-rw-r--r--src/direct_bt/ATTPDUTypes.cpp2
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 ) {