IRR: Use C++11 range-based for loop
parent
c7c756d344
commit
3031470ec1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue