summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-02 08:52:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-10 02:37:03 +0900
commite6210aafc560c303fc72360dca877cde939db98b (patch)
treed9bdb65a384e214e30e1ece05711c0a94afaf2a1 /desktop-widgets
parent44ddb1411e53d73f9c425b1a9631856435d57ad8 (diff)
downloadsubsurface-e6210aafc560c303fc72360dca877cde939db98b.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/locationinformation.cpp6
1 files changed, 3 insertions, 3 deletions
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();