summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commit4cdc067636ca7f9201faddf1410b6e781dd7c4c5 (patch)
treeb0856bc904d87a19600499fc64f42377f33451fc /src/mbgl/annotation
parent46fa69159616860ded192643031f7cb3c10b818b (diff)
downloadqtlocation-mapboxgl-4cdc067636ca7f9201faddf1410b6e781dd7c4c5.tar.gz
[core] Fix modernize-return-braced-init-list errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r--src/mbgl/annotation/symbol_annotation_impl.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/annotation/symbol_annotation_impl.hpp b/src/mbgl/annotation/symbol_annotation_impl.hpp
index d8c85cec21..928a605957 100644
--- a/src/mbgl/annotation/symbol_annotation_impl.hpp
+++ b/src/mbgl/annotation/symbol_annotation_impl.hpp
@@ -72,7 +72,7 @@ struct indexable<std::shared_ptr<const mbgl::SymbolAnnotationImpl>> {
using result_type = mbgl::LatLng;
mbgl::LatLng operator()(const std::shared_ptr<const mbgl::SymbolAnnotationImpl>& v) const {
const mbgl::Point<double>& p = v->annotation.geometry;
- return mbgl::LatLng(p.y, p.x);
+ return {p.y, p.x};
}
};