From cf86ece73e6bc7fed2b251791f5e7e6103ee25cf Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Wed, 3 Apr 2019 20:25:35 +0200 Subject: use qDeleteAll() Signed-off-by: Rolf Eike Beer --- core/qt-ble.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') 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; } -- cgit v1.2.3-70-g09d2