mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
@ -89,9 +89,7 @@ void TankItem::modelDataChanged(const QModelIndex&, const QModelIndex&)
|
|||
return;
|
||||
|
||||
// remove the old rectangles
|
||||
foreach (QGraphicsRectItem *r, rects) {
|
||||
delete(r);
|
||||
}
|
||||
qDeleteAll(rects);
|
||||
rects.clear();
|
||||
|
||||
qreal width, left;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue