mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cleanup: localize global variable
Not needed to be global. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
74eb7b21a8
commit
fc7729eb78
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,6 @@
|
|||
#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)
|
||||
{
|
||||
|
@ -303,6 +301,8 @@ 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").toLocal8Bit();
|
||||
|
|
Loading…
Reference in a new issue