Don't reimplement the clear() method

Much easier and clearer.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-29 14:00:19 -08:00
parent 4e40872fc0
commit cd992bd14a
3 changed files with 2 additions and 12 deletions

View file

@ -300,9 +300,7 @@ void MainWindow::closeCurrentFile()
clear_events();
QList<DiveComputerNode> values = dcList.dcMap.values();
for (int i = 0; i < values.size(); i++)
dcList.rmDC(values.at(i).model, values.at(i).deviceId);
dcList.dcMap.clear();
}
void MainWindow::on_actionClose_triggered()