IRR: Use C++11 range-based for loop

pull/898/head
Turo Lamminen 2016-05-21 23:07:54 +03:00
parent c7c756d344
commit 3031470ec1
1 changed files with 1 additions and 2 deletions

View File

@ -1372,8 +1372,7 @@ void IRRImporter::InternReadFile( const std::string& pFile,
/* Now iterate through all cameras and compute their final (horizontal) FOV /* Now iterate through all cameras and compute their final (horizontal) FOV
*/ */
for (std::vector<aiCamera*>::iterator it = cameras.begin(), end = cameras.end();it != end; ++it) { for (aiCamera *cam : cameras) {
aiCamera* cam = *it;
// screen aspect could be missing // screen aspect could be missing
if (cam->mAspect) { if (cam->mAspect) {