diff --git a/src/gpx.h b/src/gpx.h index 06120fa1..d3407d2c 100644 --- a/src/gpx.h +++ b/src/gpx.h @@ -12,7 +12,7 @@ class GPX { public: - GPX() : _parser(_tracks, _waypoints) {} + GPX() : _parser(_tracks, _waypoints), _errorLine(0) {} bool loadFile(const QString &fileName); const QString &errorString() const {return _error;} int errorLine() const {return _errorLine;} diff --git a/src/poi.h b/src/poi.h index 8610bd3f..a989c5b8 100644 --- a/src/poi.h +++ b/src/poi.h @@ -11,6 +11,7 @@ class POI { public: + POI() : _errorLine(0) {} bool loadFile(const QString &fileName); QString errorString() const {return _error;} int errorLine() const {return _errorLine;}