From e1cd055111cc4f7e11454b3726741f9f8a55d850 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Jan 2020 21:25:02 -0800 Subject: code cleanup: add empty table structures It seemed to make sense to combine all three types in one commit. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 54eb9490b..9685b7e37 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -380,9 +380,9 @@ void QMLManager::updateAllGlobalLists() void QMLManager::mergeLocalRepo() { char *filename = NOCLOUD_LOCALSTORAGE; - 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(filename, &table, &trips, &sites); add_imported_dives(&table, &trips, &sites, IMPORT_MERGE_ALL_TRIPS); } -- cgit v1.2.3-70-g09d2