1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +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();
else {
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:
class Entry {
public:
Entry(const QString &name, int gcs, int proj)
: _name(name), _gcs(gcs), _proj(proj) {}
Entry(const QString &name, int gcs, int conversion)
: _name(name), _gcs(gcs), _conversion(conversion) {}
const QString &name() const {return _name;}
int proj() const {return _proj;}
int conversion() const {return _conversion;}
int gcs() const {return _gcs;}
private:
QString _name;
int _gcs, _proj;
int _gcs, _conversion;
};
static QMap<int, Entry> defaults();