From e6210aafc560c303fc72360dca877cde939db98b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 2 Jan 2020 08:52:00 -0800 Subject: code cleanup: initialize all elements in structure This seems silly. I don't like that warning and would rather disable the warning. Signed-off-by: Dirk Hohndel --- desktop-widgets/locationinformation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index 331a8555e..f7b33cae4 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -264,12 +264,12 @@ void LocationInformationWidget::reverseGeocode() location_t location = parseGpsText(ui.diveSiteCoordinates->text()); if (!diveSite || !has_location(&location)) return; - taxonomy_data taxonomy = { 0 }; + taxonomy_data taxonomy = { 0, 0 }; reverseGeoLookup(location.lat, location.lon, &taxonomy); Command::editDiveSiteTaxonomy(diveSite, taxonomy); } -DiveLocationFilterProxyModel::DiveLocationFilterProxyModel(QObject *) : currentLocation({0, 0}) +DiveLocationFilterProxyModel::DiveLocationFilterProxyModel(QObject *) : currentLocation({{0}, {0}}) { } @@ -573,7 +573,7 @@ void DiveLocationLineEdit::setCurrentDiveSite(struct dive *d) currentLocation = dive_get_gps_location(d); } else { currDs = nullptr; - currentLocation = location_t{0, 0}; + currentLocation = location_t{{0}, {0}}; } if (!currDs) clear(); -- cgit v1.2.3-70-g09d2