summaryrefslogtreecommitdiffstats
path: root/commands/command_divelist.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-08 21:25:02 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-10 02:37:03 +0900
commite1cd055111cc4f7e11454b3726741f9f8a55d850 (patch)
treebb391d65743da3285367ec1f1803925978db6877 /commands/command_divelist.cpp
parent70cabb968c481e566e8249465f153e05e6dc0347 (diff)
downloadsubsurface-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 'commands/command_divelist.cpp')
-rw-r--r--commands/command_divelist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/command_divelist.cpp b/commands/command_divelist.cpp
index bf030546b..2f226df3f 100644
--- a/commands/command_divelist.cpp
+++ b/commands/command_divelist.cpp
@@ -469,10 +469,10 @@ ImportDives::ImportDives(struct dive_table *dives, struct trip_table *trips, str
// this only matters if undoit were called before redoit
currentDive = nullptr;
- struct dive_table dives_to_add = { 0, 0, 0 };
- struct dive_table dives_to_remove = { 0, 0, 0 };
- struct trip_table trips_to_add = { 0, 0, 0 };
- struct dive_site_table sites_to_add = { 0, 0, 0 };
+ struct dive_table dives_to_add = empty_dive_table;
+ struct dive_table dives_to_remove = empty_dive_table;
+ struct trip_table trips_to_add = empty_trip_table;
+ struct dive_site_table sites_to_add = empty_dive_site_table;
process_imported_dives(dives, trips, sites, flags, &dives_to_add, &dives_to_remove, &trips_to_add, &sites_to_add);
// Add trips to the divesToAdd.trips structure