From 89e92af7948cde05bbb07a082835344f3f3adb4e Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Wed, 22 Aug 2018 12:10:21 +0200 Subject: Cleanup lowenergyscanner example with clang tidy and clazy help Change-Id: Iaaf169b1ac9b3d4c348d9cabf737b395198a921f Reviewed-by: Oliver Wolff --- examples/bluetooth/lowenergyscanner/characteristicinfo.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'examples/bluetooth/lowenergyscanner/characteristicinfo.cpp') 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 -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) -- cgit v1.2.3