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

pull/898/head
Turo Lamminen 2016-05-21 22:53:19 +03:00
parent 8566b9aa90
commit c7c756d344
2 changed files with 4 additions and 4 deletions

View File

@ -1062,8 +1062,8 @@ void Converter::GenerateTransformationNodeChain( const Model& model,
nd->mName.Set( name ); nd->mName.Set( name );
for ( size_t i = 0; i < TransformationComp_MAXIMUM; ++i ) { for (const auto &transform : chain) {
nd->mTransformation = nd->mTransformation * chain[ i ]; nd->mTransformation = nd->mTransformation * transform;
} }
} }

View File

@ -269,8 +269,8 @@ Document::Document(const Parser& parser, const ImportSettings& settings)
, parser(parser) , parser(parser)
{ {
// Cannot use array default initialization syntax because vc8 fails on it // Cannot use array default initialization syntax because vc8 fails on it
for (unsigned int i = 0; i < sizeof(creationTimeStamp) / sizeof(creationTimeStamp[0]); ++i) { for (auto &timeStamp : creationTimeStamp) {
creationTimeStamp[i] = 0; timeStamp = 0;
} }
ReadHeader(); ReadHeader();