summaryrefslogtreecommitdiffstats
path: root/src/bluetooth
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2018-08-15 12:17:53 +0200
committerOliver Wolff <oliver.wolff@qt.io>2018-11-16 10:06:45 +0000
commitf61b2803146aba90ec0084c12ef1a356eb5f062f (patch)
tree1f28cd8c245079a668948b80ced641af088fff92 /src/bluetooth
parentd55434e4e36132d0c09107f22323b02cd1dff3a9 (diff)
winrt: Small code cleanup
Remove unnecessary break and correct one of bufferFromAttribute's return values. Change-Id: I6d4d74318f2eee1ed89f2e2f95909978fd8b4733 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth')
-rw-r--r--src/bluetooth/qbluetoothserviceinfo_winrt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothserviceinfo_winrt.cpp b/src/bluetooth/qbluetoothserviceinfo_winrt.cpp
index 04b1872b..45262735 100644
--- a/src/bluetooth/qbluetoothserviceinfo_winrt.cpp
+++ b/src/bluetooth/qbluetoothserviceinfo_winrt.cpp
@@ -324,7 +324,6 @@ static ComPtr<IBuffer> bufferFromAttribute(const QVariant &attribute)
case 0:
qCWarning(QT_BT_WINRT) << "Don't know how to register Uuid of length 0";
return nullptr;
- break;
case 2:
qCDebug(QT_BT_WINRT) << Q_FUNC_INFO << "Registering Uuid attribute with length 2:" << uuid;
hr = writer->WriteByte(TYPE_UUID16);
@@ -402,7 +401,7 @@ static ComPtr<IBuffer> bufferFromAttribute(const QVariant &attribute)
qCDebug(QT_BT_WINRT) << Q_FUNC_INFO << "Registered sequence attribute with length" << length;
} else if (attribute.userType() == qMetaTypeId<QBluetoothServiceInfo::Alternative>()) {
qCWarning(QT_BT_WINRT) << "Don't know how to register user type Alternative";
- return false;
+ return nullptr;
}
break;
default: