aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/GATTDescriptor.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-20 05:49:25 +0200
committerSven Gothel <[email protected]>2020-10-20 05:49:25 +0200
commit16b45949632960c9e4ccfc10b44f3cd4433cf78f (patch)
treeab0a77c1a8eef58f709062747cbbec85a734dd47 /api/direct_bt/GATTDescriptor.hpp
parent1f6e924fe05ed45bfa4d0d901af2c4df6c1abab5 (diff)
Use -Wshadow: Shadowing (or local scope override) often causing sloppy bugs, avoid 1/2 (direct_bt)
Another shadow bug fixed: UUID string ctor in UUID.cpp
Diffstat (limited to 'api/direct_bt/GATTDescriptor.hpp')
-rw-r--r--api/direct_bt/GATTDescriptor.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/direct_bt/GATTDescriptor.hpp b/api/direct_bt/GATTDescriptor.hpp
index 8ddf7603..af3e0f20 100644
--- a/api/direct_bt/GATTDescriptor.hpp
+++ b/api/direct_bt/GATTDescriptor.hpp
@@ -116,9 +116,9 @@ namespace direct_bt {
/* Characteristics Descriptor's Value */
POctets value;
- GATTDescriptor(const GATTCharacteristicRef & characteristic, const std::shared_ptr<const uuid_t> & type,
- const uint16_t handle) noexcept
- : wbr_characteristic(characteristic), type(type), handle(handle), value(/* intentional zero sized */) {}
+ GATTDescriptor(const GATTCharacteristicRef & characteristic, const std::shared_ptr<const uuid_t> & type_,
+ const uint16_t handle_) noexcept
+ : wbr_characteristic(characteristic), type(type_), handle(handle_), value(/* intentional zero sized */) {}
std::string get_java_class() const noexcept override {
return java_class();