summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
diff options
context:
space:
mode:
authorEric Lemanissier <eric.lemanissier@gmail.com>2018-06-19 13:02:39 +0200
committerEric Lemanissier <eric.lemanissier@gmail.com>2018-06-21 07:38:59 +0000
commit62efb446b56bc489c998f90e307aa12e72cb6b8e (patch)
treee52e3255677737858bbdb3836e4554de77a9fd41 /src/bluetooth/qbluetoothdevicediscoveryagent_p.h
parent3a90cf6d46dc6f34ccedb7f02515573d1db4704a (diff)
win32: modernize qbluetooth*discoveryagent
arguments pass by ref NULL and 0 replaced with nullptr ::ZeroMemory replaced by default initialization range based for loop Change-Id: I393806f19155ee31e4ebe7f33ce22e9d14eafe40 Reviewed-by: Lubomir I. Ivanov <neolit123@gmail.com> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_p.h')
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_p.h b/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
index 489ed807..d60e89fa 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
@@ -96,7 +96,7 @@ class ThreadWorkerClassic : public QObject
{
Q_OBJECT
public:
- Q_INVOKABLE void discover(QVariant hSearch);
+ Q_INVOKABLE void discover(const QVariant &hSearch);
signals:
void discoveryCompleted(const QVariant res);
};
@@ -198,9 +198,9 @@ private:
void finishDiscovery(QBluetoothDeviceDiscoveryAgent::Error errorCode, const QString &errorText);
void startLeDevicesDiscovery();
- void completeLeDevicesDiscovery(const QVariant res);
+ void completeLeDevicesDiscovery(const QVariant &res);
void startClassicDevicesDiscovery(Qt::HANDLE hSearch = nullptr);
- void completeClassicDevicesDiscovery(const QVariant res);
+ void completeClassicDevicesDiscovery(const QVariant &res);
void processDiscoveredDevice(const QBluetoothDeviceInfo &foundDevice);