1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Silenced valgrind warnings

This commit is contained in:
Martin Tůma 2017-09-14 20:19:19 +02:00
parent b457fc430c
commit c060abe6a7

View File

@ -11,21 +11,30 @@
#include "data.h" #include "data.h"
static GPXParser gpx;
static TCXParser tcx;
static KMLParser kml;
static FITParser fit;
static CSVParser csv;
static IGCParser igc;
static NMEAParser nmea;
static QHash<QString, Parser*> parsers() static QHash<QString, Parser*> parsers()
{ {
QHash<QString, Parser*> hash; QHash<QString, Parser*> hash;
hash.insert("gpx", new GPXParser()); hash.insert("gpx", &gpx);
hash.insert("tcx", new TCXParser()); hash.insert("tcx", &tcx);
hash.insert("kml", new KMLParser()); hash.insert("kml", &kml);
hash.insert("fit", new FITParser()); hash.insert("fit", &fit);
hash.insert("csv", new CSVParser()); hash.insert("csv", &csv);
hash.insert("igc", new IGCParser()); hash.insert("igc", &igc);
hash.insert("nmea", new NMEAParser()); hash.insert("nmea", &nmea);
return hash; return hash;
} }
QHash<QString, Parser*> Data::_parsers = parsers(); QHash<QString, Parser*> Data::_parsers = parsers();
Data::~Data() Data::~Data()