summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/esri
diff options
context:
space:
mode:
authorLauri Laanmets <lauri.laanmets@eesti.ee>2021-09-30 16:39:47 +0300
committerIvan Solovev <ivan.solovev@qt.io>2021-11-09 10:28:44 +0100
commitb9f167d7aea56a1ea4b5cafb4bcda763bf7a0e5e (patch)
treed816f8cca1b39ab940701600dafdaf3b5b215c9c /src/plugins/geoservices/esri
parent18aae46a744adb4510a2b04c7322c3f66bded474 (diff)
downloadqtlocation-b9f167d7aea56a1ea4b5cafb4bcda763bf7a0e5e.tar.gz
Correct string literal comparison and concatenation
This is part of a bigger work to port QtLocation maps to Qt6. Task-number: QTBUG-96795 Change-Id: Ib4c845679a9dcdd9994603076d9ba7d06c2d1c47 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Andreas Buhr <andreas.buhr@qt.io>
Diffstat (limited to 'src/plugins/geoservices/esri')
-rw-r--r--src/plugins/geoservices/esri/geotiledmappingmanagerengine_esri.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/geoservices/esri/geotiledmappingmanagerengine_esri.cpp b/src/plugins/geoservices/esri/geotiledmappingmanagerengine_esri.cpp
index 5d15835d..db75619e 100644
--- a/src/plugins/geoservices/esri/geotiledmappingmanagerengine_esri.cpp
+++ b/src/plugins/geoservices/esri/geotiledmappingmanagerengine_esri.cpp
@@ -254,9 +254,11 @@ bool GeoTiledMappingManagerEngineEsri::initializeMapSources(QGeoServiceProvider:
if (!mapsDocument.isObject()) {
*error = QGeoServiceProvider::NotSupportedError;
- *errorString = Q_FUNC_INFO + QStringLiteral("JSON error: ") + (int)parseError.error
- + ", offset: " + parseError.offset
- + ", details: " + parseError.errorString();
+ *errorString = QString("%1JSON error: %2, offset: %3, details: %4")
+ .arg(Q_FUNC_INFO)
+ .arg((int)parseError.error)
+ .arg(parseError.offset)
+ .arg(parseError.errorString());
return false;
}