From ceaf26d198f9795fde5da43be6a904bc3c133a98 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 3 Apr 2018 11:51:26 -0700 Subject: Revert "cleanup: localize global variable" This reverts commit fc7729eb78e7dae803546b3cc0011260e779a2e8. This caused the GPS workflow to break for Linus. Let's revert for 4.7.8 and figure out how to do this cleanup correctly, later. Signed-off-by: Dirk Hohndel --- desktop-widgets/subsurfacewebservices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/subsurfacewebservices.cpp') diff --git a/desktop-widgets/subsurfacewebservices.cpp b/desktop-widgets/subsurfacewebservices.cpp index 31babff32..726e2540f 100644 --- a/desktop-widgets/subsurfacewebservices.cpp +++ b/desktop-widgets/subsurfacewebservices.cpp @@ -33,6 +33,8 @@ #define PATH_MAX 4096 #endif +struct dive_table gps_location_table; + // TODO: This looks like should be ported to C code. or a big part of it. bool DivelogsDeWebServices::prepare_dives_for_divelogs(const QString &tempfile, const bool selected) { @@ -301,8 +303,6 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button) struct dive *d; struct dive_site *ds; bool changed = false; - struct dive_table gps_location_table; - memset(&gps_location_table, 0, sizeof(dive_table)); (void)changed; clear_table(&gps_location_table); QByteArray url = tr("Webservice").toUtf8(); -- cgit v1.2.3-70-g09d2