summaryrefslogtreecommitdiff
path: root/src/mbgl/text/get_anchors.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-08-03 15:01:35 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-08-04 14:08:19 +0200
commit78ec33320ff5837f23e85e336716692f63fd0254 (patch)
treede48fe425d31e2378cc02544d97e981600c4dc61 /src/mbgl/text/get_anchors.cpp
parentab7456075c7744c8528c2b86cfa77f80d6a04ef1 (diff)
downloadqtlocation-mapboxgl-78ec33320ff5837f23e85e336716692f63fd0254.tar.gz
don't use certain STL functions

some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
Diffstat (limited to 'src/mbgl/text/get_anchors.cpp')
-rw-r--r--src/mbgl/text/get_anchors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/text/get_anchors.cpp b/src/mbgl/text/get_anchors.cpp
index ef8a75c02e..6492fd0679 100644
--- a/src/mbgl/text/get_anchors.cpp
+++ b/src/mbgl/text/get_anchors.cpp
@@ -32,7 +32,7 @@ Anchors resample(const std::vector<Coordinate> &line, const float offset, const
y = util::interpolate(float(a.y), float(b.y), t);
if (x >= 0 && x < 4096 && y >= 0 && y < 4096) {
- Anchor anchor(std::round(x), std::round(y), angle, 0.5f, i);
+ Anchor anchor(::round(x), ::round(y), angle, 0.5f, i);
if (!angleWindowSize || checkMaxAngle(line, anchor, labelLength, angleWindowSize, maxAngle)) {
anchors.push_back(anchor);