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:
parent
20c82deda7
commit
9cadb8d0a5
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -26,6 +26,7 @@ PathItem::PathItem(QGraphicsItem *parent) : QGraphicsObject(parent)
|
||||
_pen = QPen(brush, PATH_WIDTH);
|
||||
|
||||
_units = Metric;
|
||||
_distance = 0;
|
||||
|
||||
_marker = new MarkerItem(this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user