diff options
| author | 2018-10-11 21:02:55 +0200 | |
|---|---|---|
| committer | 2018-10-11 16:25:02 -0700 | |
| commit | ad57871a2cbb03b0880d33184466e052a20dbd1d (patch) | |
| tree | 45260621335dd58acbb32425afb8f5a76fdaf09f /desktop-widgets | |
| parent | 04ad9c885da672b476d3abf4bc33ba172868eb61 (diff) | |
| download | subsurface-ad57871a2cbb03b0880d33184466e052a20dbd1d.tar.gz | |
Geo lookup: don't pass arguments / result via global object
The reverseGeoLookup() fetches dive-site data via GPS coordinates.
The coordinates and the result were passed via the global
"displayed_dive_site" object. To make data-flow more clear,
pass data as in and out parameters instead.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
| -rw-r--r-- | desktop-widgets/locationinformation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index 67c23510d..7a8381966 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -330,7 +330,7 @@ void LocationInformationWidget::resetPallete() void LocationInformationWidget::reverseGeocode() { - reverseGeoLookup(); + reverseGeoLookup(displayed_dive_site.latitude, displayed_dive_site.longitude, &displayed_dive_site.taxonomy); updateLabels(); } |