diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-02-20 17:08:52 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-02-20 19:41:03 +0300 |
commit | 44f9a694c57d94640f070d3c5b0fc4c918798097 (patch) | |
tree | 647b701f12a30488849fb30e3618b88ae0868879 /platform | |
parent | e27055ff21be1bb7215c3304c65daf0a1fa6e176 (diff) | |
download | qtlocation-mapboxgl-44f9a694c57d94640f070d3c5b0fc4c918798097.tar.gz |
[qt] Fix compilation error
GCC complains about this variable being potentially not initialized.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/qt/src/qmapboxgl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/qt/src/qmapboxgl.cpp b/platform/qt/src/qmapboxgl.cpp index ab99173b2a..65ecf1ce61 100644 --- a/platform/qt/src/qmapboxgl.cpp +++ b/platform/qt/src/qmapboxgl.cpp @@ -737,7 +737,7 @@ double QMapboxGL::maximumZoom() const */ Coordinate QMapboxGL::coordinate() const { - const mbgl::LatLng& latLng = *d_ptr->mapObj->getCameraOptions(d_ptr->margins).center; + const mbgl::LatLng latLng = *d_ptr->mapObj->getCameraOptions(d_ptr->margins).center; return Coordinate(latLng.latitude(), latLng.longitude()); } |