mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 13:41:16 +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"
|
#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()
|
||||||
|
Loading…
Reference in New Issue
Block a user