1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 19:52:09 +01:00

Cosmetics

This commit is contained in:
Martin Tůma 2017-08-10 08:58:21 +02:00
parent dcedfe1e9f
commit c708fa35fd
3 changed files with 12 additions and 12 deletions

View File

@ -15,28 +15,28 @@ public:
int errorLine() const {return 0;}
private:
typedef struct {
struct FileHeader {
quint8 headerSize;
quint8 protocolVersion;
quint16 profileVersion;
quint32 dataSize;
quint32 magic;
} FileHeader;
};
typedef struct {
struct Field {
quint8 id;
quint8 size;
quint8 type;
} Field;
};
typedef struct {
struct MessageDefinition {
quint8 endian;
quint16 globalId;
quint8 numFields;
Field *fields;
quint8 numDevFields;
Field *devFields;
} MessageDefinition;
};
void warning(const char *text) const;

View File

@ -53,13 +53,13 @@ public:
{return _transform.map(p);}
private:
typedef struct {
struct ReferencePoint {
QPoint xy;
Coordinates ll;
QPointF pp;
} ReferencePoint;
};
typedef struct {
struct ProjectionSetup {
double latitudeOrigin;
double longitudeOrigin;
double scale;
@ -68,7 +68,7 @@ private:
double standardParallel1;
double standardParallel2;
int zone;
} ProjectionSetup;
};
int parse(QIODevice &device, QList<ReferencePoint> &points,
QString &projection, ProjectionSetup &setup, QString &datum);

View File

@ -38,11 +38,11 @@ signals:
private:
typedef RTree<size_t, qreal, 2> POITree;
typedef struct {
struct FileIndex {
int start;
int end;
bool enabled;
} FileIndex;
};
POITree _tree;
QVector<Waypoint> _data;