mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9686b4cf74
commit
41fc822d56
2 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue