nd->mName.Set( name );
- for ( size_t i = 0; i < TransformationComp_MAXIMUM; ++i ) {
- nd->mTransformation = nd->mTransformation * chain[ i ];
+ for (const auto &transform : chain) {
+ nd->mTransformation = nd->mTransformation * transform;
}
}
, parser(parser)
{
// Cannot use array default initialization syntax because vc8 fails on it
- for (unsigned int i = 0; i < sizeof(creationTimeStamp) / sizeof(creationTimeStamp[0]); ++i) {
- creationTimeStamp[i] = 0;
+ for (auto &timeStamp : creationTimeStamp) {
+ timeStamp = 0;
}
ReadHeader();