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>
| commit | 46c9adfd30636a4b13f5b66bbe019e51033a5f0b |
| parent | fc78a32507ccaa6c101dca2cc7a4d4061acea94f |
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> |
| commit time | Thu, 28 Jul 2022 16:53:24 +0200 |
- M src/location/declarativemaps/qdeclarativegeomap.cpp
- M src/location/declarativemaps/qdeclarativegeomap_p.h
- M src/location/declarativemaps/qdeclarativegeomapitemutils_p.h
- M src/location/declarativemaps/qdeclarativegeomaptype.cpp
- M src/location/declarativemaps/qdeclarativegeomaptype_p.h
- M src/location/declarativemaps/qdeclarativegeoroutemodel.cpp
- M src/location/declarativemaps/qdeclarativegeoroutemodel_p.h
- M src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp
- M src/location/declarativemaps/qdeclarativepolylinemapitem.cpp
- M src/location/declarativemaps/qdeclarativepolylinemapitem_p_p.h
- M src/location/declarativemaps/qgeomapobject.cpp
- M src/location/declarativemaps/qparameterizableobject_p.h
- M src/location/declarativemaps/qquickgeomapgesturearea_p.h
- M src/location/declarativeplaces/qdeclarativeplace.cpp
- M src/location/declarativeplaces/qdeclarativeplace_p.h
- M src/location/doc/snippets/places/requesthandler.h
- M src/location/labs/qgeotiledmaplabs.cpp
- M src/location/labs/qsg/qmappolylineobjectqsg.cpp
- M src/location/labs/qsg/qmappolylineobjectqsg_p_p.h
- M src/location/maps/qgeocameratiles.cpp
- M src/location/maps/qgeofiletilecache.cpp
- M src/location/maps/qgeofiletilecache_p.h
- M src/location/maps/qgeomaneuver.cpp
- M src/location/maps/qgeomaneuver_p.h
- M src/location/maps/qgeomap.cpp
- M src/location/maps/qgeomap_p.h
- M src/location/maps/qgeomap_p_p.h
- M src/location/maps/qgeomapparameter.cpp
- M src/location/maps/qgeomapparameter_p.h
- M src/location/maps/qgeorouteparserosrmv5.cpp
- M src/location/maps/qgeoserviceprovider.cpp
- M src/location/maps/qgeoserviceprovider_p.h
- M src/location/maps/qgeotiledmap.cpp
- M src/location/maps/qgeotiledmap_p_p.h
- M src/location/maps/qgeotiledmapscene_p_p.h
- M src/location/places/qplacemanager.cpp
- M src/location/places/qplacemanager.h
- M src/location/places/qplacematchrequest.cpp
- M src/location/places/qplacematchrequest.h
- M src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.cpp
- M src/plugins/geoservices/mapboxgl/qgeomapmapboxgl_p.h
- M src/plugins/geoservices/nokia/qgeomapversion.cpp
- M src/plugins/geoservices/nokia/qgeomapversion.h
- M src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.cpp
- M src/plugins/geoservices/nokia/qgeoroutingmanagerengine_nokia.h
- M src/plugins/geoservices/nokia/qgeotiledmap_nokia.h
- M src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp
- M src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.h
- M src/plugins/geoservices/nokia/qgeotilefetcher_nokia.cpp
- M src/plugins/geoservices/nokia/qgeotilefetcher_nokia.h
- M src/plugins/geoservices/osm/qgeotileproviderosm.cpp
- M src/plugins/geoservices/osm/qgeotileproviderosm.h