From d3967e7b05257ba46b560d12d25c947f52831539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Thu, 21 Jan 2016 16:05:56 +0100 Subject: [PATCH] [core] don't copy stops by value when recalculating StyleParameters --- src/mbgl/style/function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;