mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Some more cosmetics
This commit is contained in:
parent
7cc39f25e1
commit
b826e497f3
@ -1,4 +1,4 @@
|
|||||||
#include <QSet>
|
#include <QMap>
|
||||||
#include <QtEndian>
|
#include <QtEndian>
|
||||||
#include "common/programpaths.h"
|
#include "common/programpaths.h"
|
||||||
#include "vectortile.h"
|
#include "vectortile.h"
|
||||||
@ -110,8 +110,8 @@ IMG::IMG(const QString &fileName)
|
|||||||
QString fn(QByteArray(name, sizeof(name)));
|
QString fn(QByteArray(name, sizeof(name)));
|
||||||
if (VectorTile::isTileFile(tt)) {
|
if (VectorTile::isTileFile(tt)) {
|
||||||
VectorTile *tile;
|
VectorTile *tile;
|
||||||
QMap<QString, VectorTile*>::iterator it = tileMap.find(fn);
|
TileMap::const_iterator it = tileMap.find(fn);
|
||||||
if (it == tileMap.end()) {
|
if (it == tileMap.constEnd()) {
|
||||||
tile = new VectorTile();
|
tile = new VectorTile();
|
||||||
tileMap.insert(fn, tile);
|
tileMap.insert(fn, tile);
|
||||||
} else
|
} else
|
||||||
@ -152,7 +152,8 @@ IMG::IMG(const QString &fileName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create tile tree
|
// 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();
|
VectorTile *tile = it.value();
|
||||||
|
|
||||||
if (!tile->init()) {
|
if (!tile->init()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user