From c708fa35fd3400c487b3655b966272bdebed5583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 10 Aug 2017 08:58:21 +0200 Subject: [PATCH] Cosmetics --- src/fitparser.h | 12 ++++++------ src/offlinemap.h | 8 ++++---- src/poi.h | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/fitparser.h b/src/fitparser.h index 67a8fa5d..1344eb8c 100644 --- a/src/fitparser.h +++ b/src/fitparser.h @@ -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; diff --git a/src/offlinemap.h b/src/offlinemap.h index 30f40ffa..e3180051 100644 --- a/src/offlinemap.h +++ b/src/offlinemap.h @@ -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 &points, QString &projection, ProjectionSetup &setup, QString &datum); diff --git a/src/poi.h b/src/poi.h index 211ff4a2..ff9256d3 100644 --- a/src/poi.h +++ b/src/poi.h @@ -38,11 +38,11 @@ signals: private: typedef RTree POITree; - typedef struct { + struct FileIndex { int start; int end; bool enabled; - } FileIndex; + }; POITree _tree; QVector _data;