1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-12-24 16:54:00 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2024-03-20 07:45:49 +01:00
parent a48b46d0fb
commit 07435a3fdc
2 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ PCS PCS::pcs(int id)
return PCS(); return PCS();
else { else {
const Entry &e = it.value(); const Entry &e = it.value();
return PCS(GCS::gcs(e.gcs()), Conversion::conversion(e.proj())); return PCS(GCS::gcs(e.gcs()), Conversion::conversion(e.conversion()));
} }
} }

View File

@ -27,16 +27,16 @@ public:
private: private:
class Entry { class Entry {
public: public:
Entry(const QString &name, int gcs, int proj) Entry(const QString &name, int gcs, int conversion)
: _name(name), _gcs(gcs), _proj(proj) {} : _name(name), _gcs(gcs), _conversion(conversion) {}
const QString &name() const {return _name;} const QString &name() const {return _name;}
int proj() const {return _proj;} int conversion() const {return _conversion;}
int gcs() const {return _gcs;} int gcs() const {return _gcs;}
private: private:
QString _name; QString _name;
int _gcs, _proj; int _gcs, _conversion;
}; };
static QMap<int, Entry> defaults(); static QMap<int, Entry> defaults();