summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-18 19:23:19 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-18 19:23:19 -0800
commit5756ce281f1459935e7f8e1a3918b4752d7b19bf (patch)
tree1656f8a39a06ac82e427983e75f36557f3f8af18 /subsurface-core
parentebdcc7fd5478a9bf7074611952bd1d1d3183e5c6 (diff)
downloadsubsurface-5756ce281f1459935e7f8e1a3918b4752d7b19bf.tar.gz
applyLocations should be a void function
Another issue pointed out by Lubomir. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/gpslocation.cpp4
-rw-r--r--subsurface-core/gpslocation.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp
index 06af74c0c..c0d55a0be 100644
--- a/subsurface-core/gpslocation.cpp
+++ b/subsurface-core/gpslocation.cpp
@@ -147,14 +147,14 @@ static void copy_gps_location(struct gpsTracker *gps, struct dive *d)
}
#define SAME_GROUP 6 * 3600 /* six hours */
-bool GpsLocation::applyLocations()
+void GpsLocation::applyLocations()
{
int i;
bool changed = false;
int last = 0;
int cnt = geoSettings->value("count", 0).toInt();
if (cnt == 0)
- return false;
+ return;
// create a table with the GPS information
struct gpsTracker *gpsTable = (struct gpsTracker *)calloc(cnt, sizeof(struct gpsTracker));
diff --git a/subsurface-core/gpslocation.h b/subsurface-core/gpslocation.h
index f60b669f7..8796b3100 100644
--- a/subsurface-core/gpslocation.h
+++ b/subsurface-core/gpslocation.h
@@ -14,7 +14,7 @@ class GpsLocation : QObject
Q_OBJECT
public:
GpsLocation(void (*showMsgCB)(const char *msg), QObject *parent);
- bool applyLocations();
+ void applyLocations();
int getGpsNum() const;
QString getUserid(QString user, QString passwd);
bool hasLocationsSource();