summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2020-06-24 09:38:55 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2020-06-25 10:06:14 +0200
commitfba18bb44a02a58794d3be8e49bddcffbd614f94 (patch)
treeee6eed2bf3491e46022c502005356ea22d6271ad /src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
parent73c52b16bd087862e403abebb718862c2662345c (diff)
Use QList instead of QVector
Task-number: QTBUG-84469 Change-Id: I2b51afeae462d051a3d62dc34ab8c6a63276853c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp')
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
index 7053df82..d650a49a 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp
@@ -376,7 +376,7 @@ void QBluetoothDeviceDiscoveryAgentPrivate::_q_deviceFound(const QString &addres
QBluetoothDeviceInfo device(btAddress, btName, btClass);
if (dict.value(QStringLiteral("RSSI")).isValid())
device.setRssi(dict.value(QStringLiteral("RSSI")).toInt());
- QVector<QBluetoothUuid> uuids;
+ QList<QBluetoothUuid> uuids;
const QStringList uuidStrings
= dict.value(QLatin1String("UUIDs")).toStringList();
for (const QString &u : uuidStrings)
@@ -427,7 +427,7 @@ static QBluetoothDeviceInfo createDeviceInfoFromBluez5Device(const QVariantMap&
QBluetoothDeviceInfo deviceInfo(btAddress, btName, btClass);
deviceInfo.setRssi(qvariant_cast<short>(properties[QStringLiteral("RSSI")]));
- QVector<QBluetoothUuid> uuids;
+ QList<QBluetoothUuid> uuids;
bool foundLikelyLowEnergyUuid = false;
const QStringList foundUuids = qvariant_cast<QStringList>(properties[QStringLiteral("UUIDs")]);
for (const auto &u: foundUuids) {