From 4653f771a639a5f8f4f4c88492a523f8ab99d60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 15 Aug 2022 09:12:37 +0200 Subject: [PATCH] Code cleanup --- src/map/oruxmap.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/map/oruxmap.cpp b/src/map/oruxmap.cpp index 916f1159..9c589ab1 100644 --- a/src/map/oruxmap.cpp +++ b/src/map/oruxmap.cpp @@ -251,8 +251,7 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir, { int zoom; QSize tileSize, size, calibrationSize; - QString datum, projection, fileName; - QList points; + QString fileName; Projection proj; Transform t; @@ -269,6 +268,7 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir, _name = name; } else if (reader.name() == QLatin1String("MapChunks")) { int xMax, yMax, width, height; + QString datum, projection; QXmlStreamAttributes attr = reader.attributes(); if (!intAttr(reader, attr, "xMax", xMax)) @@ -318,6 +318,8 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir, reader.readElementText(); } else if (reader.name() == QLatin1String("CalibrationPoints")) { + QList points; + calibrationPoints(reader, calibrationSize, points); t = computeTransformation(proj, points);