1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Cosmetics

This commit is contained in:
Martin Tůma 2020-02-10 08:55:34 +01:00
parent f70d92805b
commit 1773a1ae0d

View File

@ -6,7 +6,7 @@
#define CACHED_SUBDIVS_COUNT 2048 // ~32MB
typedef QMap<QString, VectorTile*> TileMap;
typedef QMap<QByteArray, VectorTile*> TileMap;
static SubFile::Type tileType(const char str[3])
{
@ -36,7 +36,7 @@ IMG::IMG(const QString &fileName) : _file(fileName)
}
TileMap tileMap;
QString typFile;
QByteArray typFile;
if (!_file.open(QFile::ReadOnly)) {
_errorString = _file.errorString();
@ -92,7 +92,7 @@ IMG::IMG(const QString &fileName) : _file(fileName)
&& read(type, sizeof(type)) && readValue(size) && readValue(part));
SubFile::Type tt = tileType(type);
QString fn(QByteArray(name, sizeof(name)));
QByteArray fn(name, sizeof(name));
if (VectorTile::isTileFile(tt)) {
VectorTile *tile;
TileMap::const_iterator it = tileMap.find(fn);