diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2019-04-03 20:25:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-12 12:59:17 +0300 |
commit | cf86ece73e6bc7fed2b251791f5e7e6103ee25cf (patch) | |
tree | 4cd460772f6319ab3cf39b58b8d869fdb1cc35d7 /core/qt-ble.cpp | |
parent | e3d43b5696d9aede430594fd4304d54d80bd7fac (diff) | |
download | subsurface-cf86ece73e6bc7fed2b251791f5e7e6103ee25cf.tar.gz |
use qDeleteAll()
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'core/qt-ble.cpp')
-rw-r--r-- | core/qt-ble.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/qt-ble.cpp b/core/qt-ble.cpp index 9ee5def51..1cbd57266 100644 --- a/core/qt-ble.cpp +++ b/core/qt-ble.cpp @@ -142,8 +142,7 @@ BLEObject::~BLEObject() { qDebug() << "Deleting BLE object"; - foreach (QLowEnergyService *service, services) - delete service; + qDeleteAll(services); delete controller; } |