From 11968d018fededb40271978324cda16de4d36941 Mon Sep 17 00:00:00 2001 From: Eric Lemanissier Date: Tue, 19 Jun 2018 15:22:03 +0200 Subject: win32: make bluetooth tst_startStopDeviceDiscoveries pass QVERIFY(discoveryAgent.errorString().isEmpty()) was failing Change-Id: I7b45db5b1af1ee3da75569d8855487c771cb29ed Reviewed-by: Lubomir I. Ivanov Reviewed-by: Oliver Wolff --- src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp index 1192677e..e1c6bea4 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_win.cpp @@ -507,7 +507,7 @@ void QBluetoothDeviceDiscoveryAgentPrivate::completeClassicDevicesDiscovery(cons } else { if (result.systemErrorCode == ERROR_NO_MORE_ITEMS) { closeClassicSearch(result.hSearch); - finishDiscovery(QBluetoothDeviceDiscoveryAgent::NoError, qt_error_string(NO_ERROR)); + finishDiscovery(QBluetoothDeviceDiscoveryAgent::NoError, QString()); } else if (result.systemErrorCode == NO_ERROR) { if (result.hSearch) { for (const QBluetoothDeviceInfo &device : result.devices) @@ -515,7 +515,7 @@ void QBluetoothDeviceDiscoveryAgentPrivate::completeClassicDevicesDiscovery(cons startClassicDevicesDiscovery(result.hSearch); } else { - finishDiscovery(QBluetoothDeviceDiscoveryAgent::NoError, qt_error_string(NO_ERROR)); + finishDiscovery(QBluetoothDeviceDiscoveryAgent::NoError, QString()); } } else { closeClassicSearch(result.hSearch); -- cgit v1.2.3