summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-04 20:59:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-19 13:11:10 -0700
commit3df32044ee46caf518b23cc6359f98501f7ca961 (patch)
tree860615069cf0b5f36627b0815d374c66e265dbde /desktop-widgets
parentf4ef1c4bc8805600e018777f18f3f29682e40c2d (diff)
downloadsubsurface-3df32044ee46caf518b23cc6359f98501f7ca961.tar.gz
Cleanup: generate clear_*_table() functions by macro
In analogy to the other table functions, generate these by a macro as well. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp4
-rw-r--r--desktop-widgets/mainwindow.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 6d9ba9288..f948097b2 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -342,7 +342,7 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
// this means we are retrying - so we better clean out the partial
// list of downloaded dives from the last attempt
diveImportedModel->clearTable();
- clear_table(thread.table());
+ clear_dive_table(thread.table());
}
updateState(DOWNLOADING);
@@ -493,7 +493,7 @@ void DownloadFromDCWidget::on_cancel_clicked()
return;
// now discard all the dives
- clear_table(thread.table());
+ clear_dive_table(thread.table());
done(-1);
}
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index b558ded99..2f3db5b2c 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -1769,7 +1769,7 @@ void MainWindow::on_actionImportDiveSites_triggered()
sites.dive_sites[i]->dives.nr = 0;
// Now we can clear the imported dives and trips.
- clear_table(&table);
+ clear_dive_table(&table);
clear_trip_table(&trips);
QString source = fileNames.size() == 1 ? fileNames[0] : tr("multiple files");