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

pull/898/head
Turo Lamminen 2016-05-22 13:55:47 +03:00
parent 896ab8eee2
commit 381f87507f
1 changed files with 2 additions and 4 deletions

View File

@ -459,11 +459,9 @@ void SplitLargeMeshesProcess_Vertex::SplitMesh(
if (iBase) if (iBase)
{ {
// we can't use memset here we unsigned int needn' be 32 bits // we can't use memset here we unsigned int needn' be 32 bits
for (std::vector<unsigned int>::iterator for (auto &elem : avWasCopied)
iter = avWasCopied.begin(),end = avWasCopied.end();
iter != end;++iter)
{ {
(*iter) = 0xffffffff; elem = 0xffffffff;
} }
} }