mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 13:41:16 +01:00
Code cleanup
This commit is contained in:
parent
811f5f869a
commit
ee09b2e667
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user