mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 19:49:15 +02:00
Code cleanup
This commit is contained in:
@ -105,7 +105,7 @@ bool IMGData::readFAT(QFile &file, TileMap &tileMap)
|
||||
QByteArray fn(name, sizeof(name));
|
||||
if (VectorTile::isTileFile(tt)) {
|
||||
VectorTile *tile;
|
||||
TileMap::const_iterator it = tileMap.find(fn);
|
||||
TileMap::const_iterator it(tileMap.find(fn));
|
||||
if (it == tileMap.constEnd()) {
|
||||
tile = new VectorTile();
|
||||
tileMap.insert(fn, tile);
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <QFont>
|
||||
#include <QPainter>
|
||||
#include <QCache>
|
||||
#include "map/imgmap.h"
|
||||
#include "map/textpathitem.h"
|
||||
#include "map/textpointitem.h"
|
||||
#include "map/bitmapline.h"
|
||||
|
@ -1250,7 +1250,7 @@ const Style::Line &Style::line(quint32 type) const
|
||||
{
|
||||
static Line null;
|
||||
|
||||
QMap<quint32, Line>::const_iterator it = _lines.find(type);
|
||||
QMap<quint32, Line>::const_iterator it(_lines.find(type));
|
||||
return (it == _lines.constEnd()) ? null : *it;
|
||||
}
|
||||
|
||||
@ -1258,7 +1258,7 @@ const Style::Polygon &Style::polygon(quint32 type) const
|
||||
{
|
||||
static Polygon null;
|
||||
|
||||
QMap<quint32, Polygon>::const_iterator it = _polygons.find(type);
|
||||
QMap<quint32, Polygon>::const_iterator it(_polygons.find(type));
|
||||
return (it == _polygons.constEnd()) ? null : *it;
|
||||
}
|
||||
|
||||
@ -1266,7 +1266,7 @@ const Style::Point &Style::point(quint32 type) const
|
||||
{
|
||||
static Point null;
|
||||
|
||||
QMap<quint32, Point>::const_iterator it = _points.find(type);
|
||||
QMap<quint32, Point>::const_iterator it(_points.find(type));
|
||||
return (it == _points.constEnd()) ? null : *it;
|
||||
}
|
||||
|
||||
|
@ -176,6 +176,7 @@ private:
|
||||
QMap<quint32, Point> _points;
|
||||
QList<quint32> _drawOrder;
|
||||
|
||||
/* Fonts and images must be initialized after QGuiApplication! */
|
||||
QFont _large, _normal, _small, _extraSmall;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user