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/subsurfacewebservices.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/subsurfacewebservices.cpp')
-rw-r--r-- | desktop-widgets/subsurfacewebservices.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index 2fecd07a1..658b8196a 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -453,9 +453,9 @@ void DivelogsDeWebServices::buttonClicked(QAbstractButton *button) break; } /* parse file and import dives */ - struct dive_table table = { 0 }; - struct trip_table trips = { 0 }; - struct dive_site_table sites = { 0 }; + struct dive_table table = empty_dive_table; + struct trip_table trips = empty_trip_table; + struct dive_site_table sites = empty_dive_site_table; parse_file(QFile::encodeName(zipFile.fileName()), &table, &trips, &sites); Command::importDives(&table, &trips, &sites, IMPORT_MERGE_ALL_TRIPS, QStringLiteral("divelogs.de")); |