1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Make coverity happy

This commit is contained in:
Martin Tůma 2016-11-11 21:37:35 +01:00
parent 20c82deda7
commit 9cadb8d0a5
3 changed files with 10 additions and 2 deletions

View File

@ -14,6 +14,11 @@ FITParser::FITParser(QList<TrackData> &tracks, QList<RouteData> &routes,
QList<Waypoint> &waypoints) : Parser(tracks, routes, waypoints)
{
memset(_defs, 0, sizeof(_defs));
_device = 0;
_endian = 0;
_timestamp = 0;
_len = 0;
}
void FITParser::clearDefinitions()
@ -335,10 +340,11 @@ bool FITParser::parseHeader()
bool FITParser::loadFile(QFile *file)
{
bool ret = true;
_device = file;
_endian = 0;
_timestamp = 0;
bool ret = true;
if (!parseHeader())
return false;

View File

@ -10,7 +10,8 @@ class IGCParser : public Parser
{
public:
IGCParser(QList<TrackData> &tracks, QList<RouteData> &routes,
QList<Waypoint> &waypoints) : Parser(tracks, routes, waypoints) {}
QList<Waypoint> &waypoints) : Parser(tracks, routes, waypoints)
{_errorLine = 0;}
~IGCParser() {}
bool loadFile(QFile *file);

View File

@ -26,6 +26,7 @@ PathItem::PathItem(QGraphicsItem *parent) : QGraphicsObject(parent)
_pen = QPen(brush, PATH_WIDTH);
_units = Metric;
_distance = 0;
_marker = new MarkerItem(this);