diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-08 21:25:02 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | e1cd055111cc4f7e11454b3726741f9f8a55d850 (patch) | |
tree | bb391d65743da3285367ec1f1803925978db6877 /desktop-widgets/divesiteimportdialog.cpp | |
parent | 70cabb968c481e566e8249465f153e05e6dc0347 (diff) | |
download | subsurface-e1cd055111cc4f7e11454b3726741f9f8a55d850.tar.gz |
code cleanup: add empty table structures
It seemed to make sense to combine all three types in one commit.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/divesiteimportdialog.cpp')
-rw-r--r-- | desktop-widgets/divesiteimportdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/divesiteimportdialog.cpp b/desktop-widgets/divesiteimportdialog.cpp index defb90617..f440d6edb 100644 --- a/desktop-widgets/divesiteimportdialog.cpp +++ b/desktop-widgets/divesiteimportdialog.cpp @@ -65,7 +65,7 @@ void DivesiteImportDialog::on_cancel_clicked() void DivesiteImportDialog::on_ok_clicked() { // delete non-selected dive sites - struct dive_site_table selectedSites = { 0 }; + struct dive_site_table selectedSites = empty_dive_site_table; for (int i = 0; i < importedSites.nr; i++) if (divesiteImportedModel->data(divesiteImportedModel->index(i, 0), Qt::CheckStateRole) == Qt::Checked) { struct dive_site *newSite = alloc_dive_site(); |