summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mbgl/style/function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/function.cpp b/src/mbgl/style/function.cpp
index 88fb1d6a9b..18e6c1a192 100644
--- a/src/mbgl/style/function.cpp
+++ b/src/mbgl/style/function.cpp
@@ -92,7 +92,7 @@ template class Function<TextTransformType>;
template class Function<RotationAlignmentType>;
template <typename T>
-size_t getBiggestStopLessThan(std::vector<std::pair<float, T>> stops, float z) {
+inline size_t getBiggestStopLessThan(const std::vector<std::pair<float, T>>& stops, float z) {
for (uint32_t i = 0; i < stops.size(); i++) {
if (stops[i].first > z) {
return i == 0 ? i : i - 1;