From a09a6a40c0f22bddce400ffb3899dfb57fd7a720 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sun, 22 May 2016 12:27:26 +0300 Subject: [PATCH] OpenGEX: Use C++11 range-based for loop --- code/OpenGEXImporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/OpenGEXImporter.cpp b/code/OpenGEXImporter.cpp index cad33229d..d99dc3344 100644 --- a/code/OpenGEXImporter.cpp +++ b/code/OpenGEXImporter.cpp @@ -236,8 +236,8 @@ OpenGEXImporter::VertexContainer::~VertexContainer() { delete[] m_vertices; delete[] m_normals; - for( size_t i = 0; i < AI_MAX_NUMBER_OF_TEXTURECOORDS; i++ ) { - delete [] m_textureCoords[ i ]; + for(auto &texcoords : m_textureCoords) { + delete [] texcoords; } }