Use QtBluetooth enums from their namespace

For increased type safety, some enums have been changed to
scoped enums in Qt 6.2, see
https://codereview.qt-project.org/c/qt/qtconnectivity/+/337069
https://codereview.qt-project.org/c/qt/qtconnectivity/+/336678
This patch adapts subsurface to this change.
Since C++11, enums inject their symbols in both their own
and their parent namespace, so this patch can be merged right
now.

Signed-off-by: Andreas Buhr <andreas.buhr@qt.io>
This commit is contained in:
Andreas Buhr 2021-03-12 13:20:38 +01:00 committed by Dirk Hohndel
parent 9686b4cf74
commit 41fc822d56
2 changed files with 12 additions and 12 deletions

View file

@ -642,7 +642,7 @@ dc_status_t qt_ble_open(void **io, dc_context_t *, const char *devaddr, device_d
QLowEnergyDescriptor d = l.first();
for (const QLowEnergyDescriptor &tmp: l) {
if (tmp.type() == QBluetoothUuid::ClientCharacteristicConfiguration) {
if (tmp.type() == QBluetoothUuid::DescriptorType::ClientCharacteristicConfiguration) {
d = tmp;
break;
}