summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothservicediscoveryagent_p.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-03-13 12:07:06 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-14 08:39:50 +0100
commit2802eac9bc9ce2c26d09f9598263337287e2765e (patch)
tree92158ef512f68203f53230326218f113806a8f72 /src/bluetooth/qbluetoothservicediscoveryagent_p.cpp
parent925eaae08427a6d17cf965c6214e19cfa6446d92 (diff)
Ensure examples behave on default backend and/or with no local Bt device
This patch fixes crashes and ensures that examples give some form of indication why they are not working. Change-Id: Id99951e8729c0715505e5fff7448a475979a6406 Reviewed-by: Nedim Hadzic <nhadzic@blackberry.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothservicediscoveryagent_p.cpp')
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent_p.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_p.cpp b/src/bluetooth/qbluetoothservicediscoveryagent_p.cpp
index 513d7ea7..86874a6c 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent_p.cpp
+++ b/src/bluetooth/qbluetoothservicediscoveryagent_p.cpp
@@ -45,7 +45,9 @@
QT_BEGIN_NAMESPACE
QBluetoothServiceDiscoveryAgentPrivate::QBluetoothServiceDiscoveryAgentPrivate(const QBluetoothAddress &deviceAdapter)
- : error(QBluetoothServiceDiscoveryAgent::NoError), state(Inactive)
+ : error(QBluetoothServiceDiscoveryAgent::NoError), state(Inactive),
+ deviceDiscoveryAgent(0), mode(QBluetoothServiceDiscoveryAgent::MinimalDiscovery),
+ singleDevice(false)
{
Q_UNUSED(deviceAdapter);
}