diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2018-01-24 14:04:03 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2018-01-25 09:30:59 +0000 |
commit | da4273723f42bb53827124101d91afa97d14b984 (patch) | |
tree | 095ae674005708a51a6d2efce148c1bf804aad5a /src/bluetooth/qlowenergycontroller_bluezdbus.cpp | |
parent | 1653ae6e8782fb96999a53736a773e9a31d86b8a (diff) |
Avoid wrong implicit cast leading to wrong connectToService() call
Prior to this change passing a QBluetoothUuid::ServiceClassUuid to
connectToService() caused the port overload to be called rather than
the QBluetoothUuid version. This patch introduces a ServiceClassUuid
overload that avoids relying on implicit type conversion.
There is a remote chance that this patch breaks existing code if
the remote port was in the same range as the ServiceClassUuid range.
In general the Bluetooth ports are below 100 though.
Task-number: QTBUG-65831
Change-Id: I6574291ae6fee284466d84ecb91f21e3be89f6b2
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_bluezdbus.cpp')
0 files changed, 0 insertions, 0 deletions