aboutsummaryrefslogtreecommitdiffstats
path: root/src/direct_bt/BTSecurityRegistry.cpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-09-01 12:55:24 +0200
committerSven Gothel <[email protected]>2021-09-01 12:55:24 +0200
commit39b34d8480a6a2516665845c98cb153c788555b9 (patch)
tree1c053230e5f0ee176efcec0c7ea93b9bb06cbd61 /src/direct_bt/BTSecurityRegistry.cpp
parent73f9420460dcd3a362bfafad55976a74eac85336 (diff)
BT[Device|Security]Registry: Inline static func definition in header and add noexcept, include 'em in DirectBT.hpp
Diffstat (limited to 'src/direct_bt/BTSecurityRegistry.cpp')
-rw-r--r--src/direct_bt/BTSecurityRegistry.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/direct_bt/BTSecurityRegistry.cpp b/src/direct_bt/BTSecurityRegistry.cpp
index 70c7c6f0..a75915c1 100644
--- a/src/direct_bt/BTSecurityRegistry.cpp
+++ b/src/direct_bt/BTSecurityRegistry.cpp
@@ -33,7 +33,7 @@ namespace direct_bt::BTSecurityRegistry {
static jau::darray<Entry> devicesSecDetails;
- Entry* get(const EUI48& addr, const std::string& name, AddressNameEntryMatchFunc m) {
+ Entry* get(const EUI48& addr, const std::string& name, AddressNameEntryMatchFunc m) noexcept {
auto first = devicesSecDetails.begin();
auto last = devicesSecDetails.end();
for (; first != last; ++first) {
@@ -43,7 +43,7 @@ namespace direct_bt::BTSecurityRegistry {
}
return nullptr;
}
- Entry* get(const EUI48Sub& addrSub, const std::string& name, AddressSubNameEntryMatchFunc m) {
+ Entry* get(const EUI48Sub& addrSub, const std::string& name, AddressSubNameEntryMatchFunc m) noexcept {
auto first = devicesSecDetails.begin();
auto last = devicesSecDetails.end();
for (; first != last; ++first) {
@@ -53,7 +53,7 @@ namespace direct_bt::BTSecurityRegistry {
}
return nullptr;
}
- Entry* get(const std::string& name, NameEntryMatchFunc m) {
+ Entry* get(const std::string& name, NameEntryMatchFunc m) noexcept {
auto first = devicesSecDetails.begin();
auto last = devicesSecDetails.end();
for (; first != last; ++first) {
@@ -64,11 +64,11 @@ namespace direct_bt::BTSecurityRegistry {
return nullptr;
}
- jau::darray<Entry>& getEntries() {
+ jau::darray<Entry>& getEntries() noexcept {
return devicesSecDetails;
}
- Entry* getOrCreate(const std::string& addrOrNameSub) {
+ Entry* getOrCreate(const std::string& addrOrNameSub) noexcept {
EUI48Sub addr1;
std::string errmsg;
Entry* sec = nullptr;
@@ -87,10 +87,10 @@ namespace direct_bt::BTSecurityRegistry {
}
return sec;
}
- void clear() {
+ void clear() noexcept {
devicesSecDetails.clear();
}
- std::string allToString() {
+ std::string allToString() noexcept {
std::string res;
int i=0;
for(auto iter = devicesSecDetails.cbegin(); iter != devicesSecDetails.cend(); ++iter, ++i) {