applyLocations should be a void function

Another issue pointed out by Lubomir.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-18 19:23:19 -08:00
parent ebdcc7fd54
commit 5756ce281f
2 changed files with 3 additions and 3 deletions

View file

@ -147,14 +147,14 @@ static void copy_gps_location(struct gpsTracker *gps, struct dive *d)
} }
#define SAME_GROUP 6 * 3600 /* six hours */ #define SAME_GROUP 6 * 3600 /* six hours */
bool GpsLocation::applyLocations() void GpsLocation::applyLocations()
{ {
int i; int i;
bool changed = false; bool changed = false;
int last = 0; int last = 0;
int cnt = geoSettings->value("count", 0).toInt(); int cnt = geoSettings->value("count", 0).toInt();
if (cnt == 0) if (cnt == 0)
return false; return;
// create a table with the GPS information // create a table with the GPS information
struct gpsTracker *gpsTable = (struct gpsTracker *)calloc(cnt, sizeof(struct gpsTracker)); struct gpsTracker *gpsTable = (struct gpsTracker *)calloc(cnt, sizeof(struct gpsTracker));

View file

@ -14,7 +14,7 @@ class GpsLocation : QObject
Q_OBJECT Q_OBJECT
public: public:
GpsLocation(void (*showMsgCB)(const char *msg), QObject *parent); GpsLocation(void (*showMsgCB)(const char *msg), QObject *parent);
bool applyLocations(); void applyLocations();
int getGpsNum() const; int getGpsNum() const;
QString getUserid(QString user, QString passwd); QString getUserid(QString user, QString passwd);
bool hasLocationsSource(); bool hasLocationsSource();