1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2019-06-21 23:02:13 +02:00
parent 811f5f869a
commit ee09b2e667
3 changed files with 4 additions and 9 deletions

View File

@ -75,8 +75,7 @@ GraphView::~GraphView()
delete _grid;
delete _message;
for (int i = 0; i < _graphs.count(); i++)
delete _graphs[i];
qDeleteAll(_graphs);
}
void GraphView::createXLabel()
@ -380,9 +379,7 @@ void GraphView::clear()
_slider->clear();
_info->clear();
for (int i = 0; i < _graphs.count(); i++)
delete _graphs[i];
qDeleteAll(_graphs);
_graphs.clear();
_visible.clear();
_palette.reset();

View File

@ -885,8 +885,7 @@ void GUI::closePOIFiles()
{
_poiFilesMenu->clear();
for (int i = 0; i < _poiFilesActions.count(); i++)
delete _poiFilesActions[i];
qDeleteAll(_poiFilesActions);
_poiFilesActions.clear();
_poi->clear();

View File

@ -317,8 +317,7 @@ unsigned PathItem::tickSize() const
void PathItem::updateTicks()
{
for (int i = 0; i < _ticks.size(); i++)
delete _ticks[i];
qDeleteAll(_ticks);
_ticks.clear();
if (!_showTicks)