summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-04-11 10:26:49 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-04-11 15:21:46 +0200
commita5904b27c38e95c43aa4985af007d80d7cbd39d6 (patch)
tree36b4d0ca4b44925b0af7ac3eb5f4f78abb94d7e6 /tests
parent5e5c5af5f106d95a0f432ccd12fee2b84a244b67 (diff)
Fix int/qsizetype mismatches in tst_QBluetoothLocalDevice/tst_QBluetoothDeviceDiscoveryAgent
Almost trivial, but requires the type change of a member variable, so not collected into the set of trivial changes. Pick-to: 6.3 Change-Id: I63e13bb3d49bd2f1c5a5fc0d3f05cfca60d099f2 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp2
-rw-r--r--tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp b/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
index 884526ac..a8202b9e 100644
--- a/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
+++ b/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
@@ -80,7 +80,7 @@ private slots:
void tst_discoveryMethods();
private:
- int noOfLocalDevices;
+ qsizetype noOfLocalDevices;
};
tst_QBluetoothDeviceDiscoveryAgent::tst_QBluetoothDeviceDiscoveryAgent()
diff --git a/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp b/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
index 8fe8dc9c..17deeb5d 100644
--- a/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
+++ b/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
@@ -70,7 +70,7 @@ private slots:
private:
QBluetoothAddress remoteDevice;
- int numDevices = 0;
+ qsizetype numDevices;
bool expectRemoteDevice;
};
@@ -266,7 +266,7 @@ void tst_QBluetoothLocalDevice::tst_isValid()
if (!devices.isEmpty()) {
QVERIFY(localDevice.isValid());
bool defaultFound = false;
- for (int i = 0; i<devices.count(); i++) {
+ for (qsizetype i = 0; i < devices.size(); ++i) {
QVERIFY(devices.at(i).address() != invalidAddress);
if (devices.at(i).address() == localDevice.address() ) {
defaultFound = true;