mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
#define PATH_MAX 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct dive_table gps_location_table;
|
|
||||||
|
|
||||||
// TODO: This looks like should be ported to C code. or a big part of it.
|
// 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)
|
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 *d;
|
||||||
struct dive_site *ds;
|
struct dive_site *ds;
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
|
struct dive_table gps_location_table;
|
||||||
|
memset(&gps_location_table, 0, sizeof(dive_table));
|
||||||
(void)changed;
|
(void)changed;
|
||||||
clear_table(&gps_location_table);
|
clear_table(&gps_location_table);
|
||||||
QByteArray url = tr("Webservice").toLocal8Bit();
|
QByteArray url = tr("Webservice").toLocal8Bit();
|
||||||
|
|
Loading…
Add table
Reference in a new issue