mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-25 18:49:16 +02:00
Fixed most clazy warnings
This commit is contained in:
@ -14,9 +14,9 @@ QMap<int, Ellipsoid> Ellipsoid::WGS84()
|
||||
|
||||
const Ellipsoid *Ellipsoid::ellipsoid(int id)
|
||||
{
|
||||
QMap<int, Ellipsoid>::const_iterator it = _ellipsoids.find(id);
|
||||
QMap<int, Ellipsoid>::const_iterator it(_ellipsoids.find(id));
|
||||
|
||||
if (it == _ellipsoids.end())
|
||||
if (it == _ellipsoids.constEnd())
|
||||
return 0;
|
||||
else
|
||||
return &(it.value());
|
||||
|
@ -116,8 +116,8 @@ QByteArray Tar::file(const QString &name)
|
||||
struct Header *hdr = (struct Header*)&buffer;
|
||||
quint64 size;
|
||||
|
||||
QMap<QString, quint64>::const_iterator it = _index.find(name);
|
||||
if (it == _index.end())
|
||||
QMap<QString, quint64>::const_iterator it(_index.find(name));
|
||||
if (it == _index.constEnd())
|
||||
return QByteArray();
|
||||
|
||||
Q_ASSERT(_file.isOpen());
|
||||
|
Reference in New Issue
Block a user