diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2016-08-08 11:21:30 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2016-08-09 06:57:57 +0000 |
commit | 77b5b58b182e09b4f9f0c8b0d8b0f907fe8578ae (patch) | |
tree | 5bab6926bbf24048bbd603a3b9de3362a5a52a2a | |
parent | 971c898235d3f48a6b33a17359cd3d644b9f8b5f (diff) |
winrt: Remove comment that no longer applies
Due to recent changes the worker is deleted by the
device discovery agent and does no longer handle its
own lifetime.
Change-Id: I3bd0e4880ab7ee48b900e2b38591c131f468f7a1
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp index ec8de3e8..ab2524a2 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp @@ -368,10 +368,6 @@ void QBluetoothDeviceDiscoveryAgentPrivate::start(QBluetoothDeviceDiscoveryAgent if (worker) return; - // The worker handles its lifetime on its own (basically deletes itself as soon - // as it's done with its work) to prevent windows callbacks that access objects - // that have already been destroyed. Thus we create a new worker for every start - // and just forget about it as soon as the operation is canceled or finished. worker = new QWinRTBluetoothDeviceDiscoveryWorker(); worker->requestedModes = methods; discoveredDevices.clear(); |