summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-10-18 17:57:04 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-10-23 12:23:40 +0200
commit70d5972e104aac91f4198540d4af14562e92d555 (patch)
tree83e92385784d2c89df052690cd3a15ad1ca3eb01 /src/mbgl/geometry
parent282c71e8e9a8ec9c2eab612f2e60a71b15d24c8a (diff)
downloadqtlocation-mapboxgl-70d5972e104aac91f4198540d4af14562e92d555.tar.gz
[core] don't use <boost/functional/hash.hpp> to avoid <locale> include
Diffstat (limited to 'src/mbgl/geometry')
-rw-r--r--src/mbgl/geometry/line_atlas.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mbgl/geometry/line_atlas.cpp b/src/mbgl/geometry/line_atlas.cpp
index 1129bd0b20..ba14655cab 100644
--- a/src/mbgl/geometry/line_atlas.cpp
+++ b/src/mbgl/geometry/line_atlas.cpp
@@ -2,8 +2,7 @@
#include <mbgl/gl/context.hpp>
#include <mbgl/util/logging.hpp>
#include <mbgl/util/platform.hpp>
-
-#include <boost/functional/hash.hpp>
+#include <mbgl/util/hash.hpp>
#include <sstream>
#include <cmath>
@@ -22,7 +21,7 @@ LinePatternPos LineAtlas::getDashPosition(const std::vector<float>& dasharray,
size_t key = patternCap == LinePatternCap::Round ? std::numeric_limits<size_t>::min()
: std::numeric_limits<size_t>::max();
for (const float part : dasharray) {
- boost::hash_combine<float>(key, part);
+ util::hash_combine<float>(key, part);
}
// Note: We're not handling hash collisions here.