mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-15 11:24:24 +02:00
Code cleanup
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user