summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-02-20 18:00:37 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-03-02 14:36:30 -0800
commite1c85e8ec3c66efa6a5da987b639c7c32aa68169 (patch)
treed4e2892365c759c90e87028c71255530a54c4884
parenta7b7f3d44297608121dba975586e838f03b6c3c5 (diff)
downloadqtlocation-mapboxgl-e1c85e8ec3c66efa6a5da987b639c7c32aa68169.tar.gz
[core] const-correction
-rw-r--r--src/mbgl/text/check_max_angle.cpp2
-rw-r--r--src/mbgl/text/check_max_angle.hpp2
-rw-r--r--src/mbgl/text/quads.cpp2
-rw-r--r--src/mbgl/text/quads.hpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/text/check_max_angle.cpp b/src/mbgl/text/check_max_angle.cpp
index d13d28f822..9109235798 100644
--- a/src/mbgl/text/check_max_angle.cpp
+++ b/src/mbgl/text/check_max_angle.cpp
@@ -14,7 +14,7 @@ struct Corner {
};
bool checkMaxAngle(const GeometryCoordinates& line,
- Anchor& anchor,
+ const Anchor& anchor,
const float labelLength,
const float windowSize,
const float maxAngle) {
diff --git a/src/mbgl/text/check_max_angle.hpp b/src/mbgl/text/check_max_angle.hpp
index 8d53951e49..c95661160c 100644
--- a/src/mbgl/text/check_max_angle.hpp
+++ b/src/mbgl/text/check_max_angle.hpp
@@ -7,7 +7,7 @@ namespace mbgl {
class Anchor;
bool checkMaxAngle(const GeometryCoordinates& line,
- Anchor& anchor,
+ const Anchor& anchor,
const float labelLength,
const float windowSize,
const float maxAngle);
diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp
index 6643621fdd..a0742f5a4b 100644
--- a/src/mbgl/text/quads.cpp
+++ b/src/mbgl/text/quads.cpp
@@ -14,7 +14,7 @@ using namespace style;
const float globalMinScale = 0.5f; // underscale by 1 zoom level
-SymbolQuad getIconQuad(Anchor& anchor,
+SymbolQuad getIconQuad(const Anchor& anchor,
const PositionedIcon& shapedIcon,
const GeometryCoordinates& line,
const SymbolLayoutProperties::Evaluated& layout,
diff --git a/src/mbgl/text/quads.hpp b/src/mbgl/text/quads.hpp
index 61c03f3201..f1529d8829 100644
--- a/src/mbgl/text/quads.hpp
+++ b/src/mbgl/text/quads.hpp
@@ -51,7 +51,7 @@ public:
typedef std::vector<SymbolQuad> SymbolQuads;
-SymbolQuad getIconQuad(Anchor& anchor,
+SymbolQuad getIconQuad(const Anchor& anchor,
const PositionedIcon& shapedIcon,
const GeometryCoordinates& line,
const style::SymbolLayoutProperties::Evaluated&,