From 9e766ec352f05022299696676b42520d45fe94ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 23 Jun 2015 21:51:29 +0200 Subject: [PATCH] MeshTools: const++. --- src/Magnum/MeshTools/CompressIndices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/MeshTools/CompressIndices.cpp b/src/Magnum/MeshTools/CompressIndices.cpp index b1bb1f50d..1635830de 100644 --- a/src/Magnum/MeshTools/CompressIndices.cpp +++ b/src/Magnum/MeshTools/CompressIndices.cpp @@ -49,7 +49,7 @@ template inline Containers::Array compress(const std::vector, Mesh::IndexType, UnsignedInt, UnsignedInt> compressIndices(const std::vector& indices) { /** @todo Performance hint when range can be represented by smaller value? */ - auto minmax = std::minmax_element(indices.begin(), indices.end()); + const auto minmax = std::minmax_element(indices.begin(), indices.end()); Containers::Array data; Mesh::IndexType type; switch(Math::log(256, *minmax.second)) {