From 6848a18999be2acf31791cf17624d7601d7f0e7c Mon Sep 17 00:00:00 2001 From: Jukka Maatta Date: Tue, 13 Oct 2020 21:56:43 +0300 Subject: [PATCH] Fix for issue #3445 Add const to avoid creating a temporary copy. This should fix the cmake compilation error on XGLLoader.cpp shown in bug #3445 The fix is similar to commit bbe6f7f213b5e2ee689146df5c068dc1a55ea919 --- code/AssetLib/XGL/XGLLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/XGL/XGLLoader.cpp b/code/AssetLib/XGL/XGLLoader.cpp index 0ef5943c0..3590b9441 100644 --- a/code/AssetLib/XGL/XGLLoader.cpp +++ b/code/AssetLib/XGL/XGLLoader.cpp @@ -598,7 +598,7 @@ bool XGLImporter::ReadMesh(XmlNode &node, TempScope &scope) { } // finally extract output meshes and add them to the scope - typedef std::pair pairt; + typedef std::pair pairt; for (const pairt &p : bymat) { aiMesh *const m = ToOutputMesh(p.second); scope.meshes_linear.push_back(m);