1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 06:43:22 +02:00

Some more cosmetics

This commit is contained in:
Martin Tůma 2020-01-19 21:00:11 +01:00
parent 7cc39f25e1
commit b826e497f3

View File

@ -1,4 +1,4 @@
#include <QSet>
#include <QMap>
#include <QtEndian>
#include "common/programpaths.h"
#include "vectortile.h"
@ -110,8 +110,8 @@ IMG::IMG(const QString &fileName)
QString fn(QByteArray(name, sizeof(name)));
if (VectorTile::isTileFile(tt)) {
VectorTile *tile;
QMap<QString, VectorTile*>::iterator it = tileMap.find(fn);
if (it == tileMap.end()) {
TileMap::const_iterator it = tileMap.find(fn);
if (it == tileMap.constEnd()) {
tile = new VectorTile();
tileMap.insert(fn, tile);
} else
@ -152,7 +152,8 @@ IMG::IMG(const QString &fileName)
}
// Create tile tree
for (TileMap::iterator it = tileMap.begin(); it != tileMap.end(); ++it) {
for (TileMap::const_iterator it = tileMap.constBegin();
it != tileMap.constEnd(); ++it) {
VectorTile *tile = it.value();
if (!tile->init()) {