diff --git a/src/mbgl/style/function.cpp b/src/mbgl/style/function.cpp index 88fb1d6a9..18e6c1a19 100644 --- a/src/mbgl/style/function.cpp +++ b/src/mbgl/style/function.cpp @@ -92,7 +92,7 @@ template class Function; template class Function; template -size_t getBiggestStopLessThan(std::vector> stops, float z) { +inline size_t getBiggestStopLessThan(const std::vector>& stops, float z) { for (uint32_t i = 0; i < stops.size(); i++) { if (stops[i].first > z) { return i == 0 ? i : i - 1;