Code cleanup

This commit is contained in:
Martin Tůma 2020-07-01 20:48:37 +02:00
parent 9772c2f67f
commit 7684f4fdcf
2 changed files with 2 additions and 5 deletions

View File

@ -113,7 +113,5 @@ PBF::PBF(const vector_tile::Tile &tile)
PBF::~PBF() PBF::~PBF()
{ {
for (QHash<QString, Layer*>::iterator it = _layers.begin(); qDeleteAll(_layers);
it != _layers.end(); it++)
delete *it;
} }

View File

@ -9,8 +9,7 @@
Text::~Text() Text::~Text()
{ {
for (int i = 0; i < _items.size(); i++) qDeleteAll(_items);
delete _items[i];
} }
void Text::render(QPainter *painter) const void Text::render(QPainter *painter) const