From 758b4ad05c0d1dd5bbc1e5390168a08111b4838c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 19 Jun 2023 12:07:35 +0200 Subject: [PATCH] MeshTools: pass an ArrayView instead of an Array reference. Huh this whole code smells ... rotten. --- src/Magnum/MeshTools/Combine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/MeshTools/Combine.cpp b/src/Magnum/MeshTools/Combine.cpp index f79647044..ca2f21fbd 100644 --- a/src/Magnum/MeshTools/Combine.cpp +++ b/src/Magnum/MeshTools/Combine.cpp @@ -43,7 +43,7 @@ Trade::MeshData combineIndexedImplementation( #if !defined(CORRADE_NO_ASSERT) && !defined(CORRADE_STANDARD_ASSERT) const char* assertPrefix, #endif - const MeshPrimitive primitive, Containers::Array& combinedIndices, const UnsignedInt indexCount, const UnsignedInt indexStride, const Containers::Iterable& meshes) + const MeshPrimitive primitive, Containers::ArrayView combinedIndices, const UnsignedInt indexCount, const UnsignedInt indexStride, const Containers::Iterable& meshes) { /* Calculate attribute count and vertex stride */ UnsignedInt attributeCount = 0;