diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2015-12-07 13:29:33 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2015-12-07 15:13:52 +0000 |
commit | ad87f48753d8e6721079240744b38b1c64ef22c9 (patch) | |
tree | ebfc53746b63d90ac4c4c7e12d3003f89e0e657b /src | |
parent | 4cafd5cac8e920c6decbb974bf548e9c8f935d24 (diff) |
QBluetoothServiceDiscoveryAgentPrivate: use const reference for
parameters to avoid unnecessary data copying.
Change-Id: Iaca94a2af27d5d756deb9751c6bc9630f5fbc8bf
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp | 4 | ||||
-rw-r--r-- | src/bluetooth/qbluetoothservicediscoveryagent_p.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp b/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp index ae51d681..87172654 100644 --- a/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp +++ b/src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp @@ -194,7 +194,7 @@ void QBluetoothServiceDiscoveryAgentPrivate::startBluez5(const QBluetoothAddress * done out-of-process to avoid license issues. At this stage Bluez uses GPLv2. */ void QBluetoothServiceDiscoveryAgentPrivate::runExternalSdpScan( - const QBluetoothAddress &remoteAddress, const QBluetoothAddress localAddress) + const QBluetoothAddress &remoteAddress, const QBluetoothAddress &localAddress) { Q_Q(QBluetoothServiceDiscoveryAgent); @@ -426,7 +426,7 @@ void QBluetoothServiceDiscoveryAgentPrivate::_q_createdDevice(QDBusPendingCallWa discoverServices(deviceObjectPath.value().path()); } -void QBluetoothServiceDiscoveryAgentPrivate::discoverServices(const QString deviceObjectPath) +void QBluetoothServiceDiscoveryAgentPrivate::discoverServices(const QString &deviceObjectPath) { Q_Q(QBluetoothServiceDiscoveryAgent); diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_p.h b/src/bluetooth/qbluetoothservicediscoveryagent_p.h index c4d5017a..595dd04c 100644 --- a/src/bluetooth/qbluetoothservicediscoveryagent_p.h +++ b/src/bluetooth/qbluetoothservicediscoveryagent_p.h @@ -137,12 +137,12 @@ private: #ifdef QT_BLUEZ_BLUETOOTH void startBluez5(const QBluetoothAddress &address); void runExternalSdpScan(const QBluetoothAddress &remoteAddress, - const QBluetoothAddress localAddress); + const QBluetoothAddress &localAddress); void sdpScannerDone(int exitCode, QProcess::ExitStatus exitStatus); QVariant readAttributeValue(QXmlStreamReader &xml); QBluetoothServiceInfo parseServiceXml(const QString& xml); void performMinimalServiceDiscovery(const QBluetoothAddress &deviceAddress); - void discoverServices(const QString deviceObjectPath); + void discoverServices(const QString &deviceObjectPath); #endif public: |