summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bluetooth/android/devicediscoverybroadcastreceiver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/android/devicediscoverybroadcastreceiver.cpp b/src/bluetooth/android/devicediscoverybroadcastreceiver.cpp
index 2875190f..cc7660e7 100644
--- a/src/bluetooth/android/devicediscoverybroadcastreceiver.cpp
+++ b/src/bluetooth/android/devicediscoverybroadcastreceiver.cpp
@@ -125,7 +125,7 @@ static constexpr MajorClassJavaToQtMapping majorMappings[] = {
// QBluetoothDeviceInfo::MajorDeviceClass value plus 1 matches index
// UncategorizedDevice shifts to index 0
-static const int minorIndexSizes[] = {
+static constexpr quint8 minorIndexSizes[] = {
64, // QBluetoothDevice::UncategorizedDevice
61, // QBluetoothDevice::MiscellaneousDevice
18, // QBluetoothDevice::ComputerDevice
@@ -351,7 +351,7 @@ void triggerCachingOfMinorsForMajor(QBluetoothDeviceInfo::MajorDeviceClass major
{
//qCDebug(QT_BT_ANDROID) << "Caching minor values for major" << major;
int mappingIndex = mappingIndexForMajor(major);
- int sizeIndex = minorIndexSizes[mappingIndex];
+ quint8 sizeIndex = minorIndexSizes[mappingIndex];
while (minorMappings[sizeIndex].javaFieldName != nullptr) {
jint fieldValue = QJniObject::getStaticField<jint>(