mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
subsurfacewebservices.cpp: make sure 'changed' is not unused
Make sure 'changed' in SubsurfaceWebServices::buttonClicked() is not unused even if NO_MARBLE is defined. It appears to be used only in the #ifndef NO_MARBLE branch. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
c1495f08ec
commit
c2ff2be210
1 changed files with 1 additions and 0 deletions
|
@ -411,6 +411,7 @@ 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;
|
||||||
|
(void)changed;
|
||||||
clear_table(&gps_location_table);
|
clear_table(&gps_location_table);
|
||||||
QByteArray url = tr("Webservice").toLocal8Bit();
|
QByteArray url = tr("Webservice").toLocal8Bit();
|
||||||
parse_xml_buffer(url.data(), downloadedData.data(), downloadedData.length(), &gps_location_table, NULL);
|
parse_xml_buffer(url.data(), downloadedData.data(), downloadedData.length(), &gps_location_table, NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue