1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-12-01 07:01:16 +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 _grid;
delete _message; delete _message;
for (int i = 0; i < _graphs.count(); i++) qDeleteAll(_graphs);
delete _graphs[i];
} }
void GraphView::createXLabel() void GraphView::createXLabel()
@ -380,9 +379,7 @@ void GraphView::clear()
_slider->clear(); _slider->clear();
_info->clear(); _info->clear();
for (int i = 0; i < _graphs.count(); i++) qDeleteAll(_graphs);
delete _graphs[i];
_graphs.clear(); _graphs.clear();
_visible.clear(); _visible.clear();
_palette.reset(); _palette.reset();

View File

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

View File

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