summaryrefslogtreecommitdiff
path: root/src/3rdparty/earcut/earcut.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2018-01-05 16:29:24 +0200
committerBruno de Oliveira Abinader <brunoabinader@gmail.com>2018-01-09 13:24:46 +0000
commit8dd711a9e9dd88195bc85d3e15b30dd1384aebae (patch)
tree007415253c5180a0547590fb5588ce2300993a88 /src/3rdparty/earcut/earcut.hpp
parent00483471fc14dc8a99fb64489358bdddb64bd676 (diff)
downloadqtlocation-8dd711a9e9dd88195bc85d3e15b30dd1384aebae.tar.gz
Use custom namespace in QtLocation's earcut
The custom namespace avoids clashes with mapbox-gl-native's own earcut.hpp dependency. Task-number: QTBUG-65262 Change-Id: Ic5121e88dca45c01af7ce26e38a99a0cd2d1c88e Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/3rdparty/earcut/earcut.hpp')
-rw-r--r--src/3rdparty/earcut/earcut.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/earcut/earcut.hpp b/src/3rdparty/earcut/earcut.hpp
index 287be028..ba3fb17a 100644
--- a/src/3rdparty/earcut/earcut.hpp
+++ b/src/3rdparty/earcut/earcut.hpp
@@ -9,7 +9,7 @@
#include <memory>
#include <vector>
-namespace mapbox {
+namespace qt_mapbox {
namespace util {
@@ -771,7 +771,7 @@ void Earcut<N>::removeNode(Node* p) {
template <typename N = uint32_t, typename Polygon>
std::vector<N> earcut(const Polygon& poly) {
- mapbox::detail::Earcut<N> earcut;
+ qt_mapbox::detail::Earcut<N> earcut;
earcut(poly);
return earcut.indices;
}