mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
use qDeleteAll()
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
e3d43b5696
commit
cf86ece73e
2 changed files with 2 additions and 5 deletions
|
@ -142,8 +142,7 @@ BLEObject::~BLEObject()
|
||||||
{
|
{
|
||||||
qDebug() << "Deleting BLE object";
|
qDebug() << "Deleting BLE object";
|
||||||
|
|
||||||
foreach (QLowEnergyService *service, services)
|
qDeleteAll(services);
|
||||||
delete service;
|
|
||||||
|
|
||||||
delete controller;
|
delete controller;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,9 +89,7 @@ void TankItem::modelDataChanged(const QModelIndex&, const QModelIndex&)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// remove the old rectangles
|
// remove the old rectangles
|
||||||
foreach (QGraphicsRectItem *r, rects) {
|
qDeleteAll(rects);
|
||||||
delete(r);
|
|
||||||
}
|
|
||||||
rects.clear();
|
rects.clear();
|
||||||
|
|
||||||
qreal width, left;
|
qreal width, left;
|
||||||
|
|
Loading…
Reference in a new issue