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()
{
for (QHash<QString, Layer*>::iterator it = _layers.begin();
it != _layers.end(); it++)
delete *it;
qDeleteAll(_layers);
}

View File

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