mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Silenced valgrind warnings
This commit is contained in:
parent
b457fc430c
commit
c060abe6a7
23
src/data.cpp
23
src/data.cpp
@ -11,21 +11,30 @@
|
||||
#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()
|
||||
{
|
||||
QHash<QString, Parser*> hash;
|
||||
|
||||
hash.insert("gpx", new GPXParser());
|
||||
hash.insert("tcx", new TCXParser());
|
||||
hash.insert("kml", new KMLParser());
|
||||
hash.insert("fit", new FITParser());
|
||||
hash.insert("csv", new CSVParser());
|
||||
hash.insert("igc", new IGCParser());
|
||||
hash.insert("nmea", new NMEAParser());
|
||||
hash.insert("gpx", &gpx);
|
||||
hash.insert("tcx", &tcx);
|
||||
hash.insert("kml", &kml);
|
||||
hash.insert("fit", &fit);
|
||||
hash.insert("csv", &csv);
|
||||
hash.insert("igc", &igc);
|
||||
hash.insert("nmea", &nmea);
|
||||
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
||||
QHash<QString, Parser*> Data::_parsers = parsers();
|
||||
|
||||
Data::~Data()
|
||||
|
Loading…
Reference in New Issue
Block a user