From 70238062f2a05b67879fb5791e34dc8d87bd763d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 2 Mar 2016 09:15:03 +0100 Subject: [PATCH] Added missing initializations --- src/gpx.h | 2 +- src/poi.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;}