diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-08-22 12:10:21 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-08-24 05:44:13 +0000 |
commit | 89e92af7948cde05bbb07a082835344f3f3adb4e (patch) | |
tree | 92a51d79b8101609b1dd56f9583a5b4d07762313 /examples/bluetooth/lowenergyscanner/characteristicinfo.cpp | |
parent | 4a20dda27259fad1468370860162b8f22ca53072 (diff) |
Cleanup lowenergyscanner example with clang tidy and clazy help
Change-Id: Iaaf169b1ac9b3d4c348d9cabf737b395198a921f
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/characteristicinfo.cpp')
-rw-r--r-- | examples/bluetooth/lowenergyscanner/characteristicinfo.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp b/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp index f64ddf79..2402f4d1 100644 --- a/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp +++ b/examples/bluetooth/lowenergyscanner/characteristicinfo.cpp @@ -53,10 +53,6 @@ #include "qbluetoothuuid.h" #include <QByteArray> -CharacteristicInfo::CharacteristicInfo() -{ -} - CharacteristicInfo::CharacteristicInfo(const QLowEnergyCharacteristic &characteristic): m_characteristic(characteristic) { @@ -131,7 +127,7 @@ QString CharacteristicInfo::getHandle() const QString CharacteristicInfo::getPermission() const { QString properties = "( "; - int permission = m_characteristic.properties(); + uint permission = m_characteristic.properties(); if (permission & QLowEnergyCharacteristic::Read) properties += QStringLiteral(" Read"); if (permission & QLowEnergyCharacteristic::Write) |