summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-07-27 23:24:20 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-07-28 16:53:24 +0200
commit46c9adfd30636a4b13f5b66bbe019e51033a5f0b (patch)
treee53a9cd098f3561c7fb6b0d5007e0df999a3fec7 /src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h
parentfc78a32507ccaa6c101dca2cc7a4d4061acea94f (diff)
downloadqtlocation-46c9adfd30636a4b13f5b66bbe019e51033a5f0b.tar.gz
Use 'const' correctly
Don't return or pass const copies, use either plain copies or const references. Make getters const, make variables const, and use qAsConst in ranged for loops to avoid detaches. Pick-to: 6.2 Change-Id: If1463cf7f0077c08dedb15388d912b652c2b037c Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Diffstat (limited to 'src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h')
-rw-r--r--src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h b/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h
index 1c180f31..6098a5e1 100644
--- a/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h
+++ b/src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h
@@ -99,7 +99,7 @@ public:
protected:
void changeViewportSize(const QSize &size) override;
void changeCameraData(const QGeoCameraData &oldCameraData) override;
- void changeActiveMapType(const QGeoMapType mapType) override;
+ void changeActiveMapType(const QGeoMapType &mapType) override;
void setVisibleArea(const QRectF &visibleArea) override;
QRectF visibleArea() const override;