summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression')
-rw-r--r--include/mbgl/style/expression/get_covering_stops.hpp3
-rw-r--r--include/mbgl/style/expression/step.hpp2
-rw-r--r--include/mbgl/style/expression/value.hpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/include/mbgl/style/expression/get_covering_stops.hpp b/include/mbgl/style/expression/get_covering_stops.hpp
index 157aefe7bc..c9de9d1965 100644
--- a/include/mbgl/style/expression/get_covering_stops.hpp
+++ b/include/mbgl/style/expression/get_covering_stops.hpp
@@ -10,8 +10,7 @@ namespace style {
namespace expression {
// Return the smallest range of stops that covers the interval [lower, upper]
-Range<float> getCoveringStops(const std::map<double, std::unique_ptr<Expression>>& stops,
- const double lower, const double upper);
+Range<float> getCoveringStops(const std::map<double, std::unique_ptr<Expression>>& stops, double lower, double upper);
} // namespace expression
} // namespace style
diff --git a/include/mbgl/style/expression/step.hpp b/include/mbgl/style/expression/step.hpp
index 24e29b1a4e..f241f7af67 100644
--- a/include/mbgl/style/expression/step.hpp
+++ b/include/mbgl/style/expression/step.hpp
@@ -24,7 +24,7 @@ public:
void eachStop(const std::function<void(double, const Expression&)>& visit) const;
const std::unique_ptr<Expression>& getInput() const { return input; }
- Range<float> getCoveringStops(const double lower, const double upper) const;
+ Range<float> getCoveringStops(double lower, double upper) const;
bool operator==(const Expression& e) const override;
diff --git a/include/mbgl/style/expression/value.hpp b/include/mbgl/style/expression/value.hpp
index 6f12bb9336..80e6b65233 100644
--- a/include/mbgl/style/expression/value.hpp
+++ b/include/mbgl/style/expression/value.hpp
@@ -93,7 +93,7 @@ struct ValueConverter<mbgl::Value> {
template <>
struct ValueConverter<float> {
static type::Type expressionType() { return type::Number; }
- static Value toExpressionValue(const float value);
+ static Value toExpressionValue(float value);
static optional<float> fromExpressionValue(const Value& value);
};