1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-15 11:24:24 +02:00

Code cleanup

This commit is contained in:
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();