From 3031470ec1423812ca48f8a1fe8ca0e0b19ac526 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sat, 21 May 2016 23:07:54 +0300 Subject: [PATCH] IRR: Use C++11 range-based for loop --- code/IRRLoader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/IRRLoader.cpp b/code/IRRLoader.cpp index fcf894e6a..cc0d2c5f4 100644 --- a/code/IRRLoader.cpp +++ b/code/IRRLoader.cpp @@ -1372,8 +1372,7 @@ void IRRImporter::InternReadFile( const std::string& pFile, /* Now iterate through all cameras and compute their final (horizontal) FOV */ - for (std::vector::iterator it = cameras.begin(), end = cameras.end();it != end; ++it) { - aiCamera* cam = *it; + for (aiCamera *cam : cameras) { // screen aspect could be missing if (cam->mAspect) {