diff options
author | Sven Gothel <[email protected]> | 2020-10-23 06:50:47 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-10-23 06:50:47 +0200 |
commit | fcbe2b39e5eb5bf2aafc876bdf5e6bf1a300f3ae (patch) | |
tree | c8344051089f2ba0c4ad77df65653558b448bf95 /api | |
parent | a698ecf7f3e24e8769bab12d80dcdbb36dab8b1d (diff) |
Better arg names and order for 'ScanType changeScanType(const ScanType current, const ScanType changeType, const bool changeEnable)'
Diffstat (limited to 'api')
-rw-r--r-- | api/direct_bt/BTTypes.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/api/direct_bt/BTTypes.hpp b/api/direct_bt/BTTypes.hpp index 2c0d8438..efcfa8ed 100644 --- a/api/direct_bt/BTTypes.hpp +++ b/api/direct_bt/BTTypes.hpp @@ -141,11 +141,11 @@ namespace direct_bt { constexpr bool operator !=(const ScanType lhs, const ScanType rhs) noexcept { return !( lhs == rhs ); } - constexpr ScanType changeScanType(const ScanType current, const bool enable, const ScanType enableChanged) noexcept { - return enable ? ( current | enableChanged ) : ( current & ~enableChanged ); + constexpr ScanType changeScanType(const ScanType current, const ScanType changeType, const bool changeEnable) noexcept { + return changeEnable ? ( current | changeType ) : ( current & ~changeType ); } - constexpr bool hasScanType(const ScanType current, const ScanType test) noexcept { - return test == ( current & test ); + constexpr bool hasScanType(const ScanType current, const ScanType testType) noexcept { + return testType == ( current & testType ); } std::string getScanTypeString(const ScanType v) noexcept; |