Replaced BOOST_FOREACH with c++11 ranged for loops

This commit is contained in:
mensinda
2016-04-05 22:53:54 +02:00
parent 4836a2993e
commit 18843fe5e1
33 changed files with 209 additions and 236 deletions

View File

@@ -115,7 +115,7 @@ void TempMesh::Clear()
// ------------------------------------------------------------------------------------------------
void TempMesh::Transform(const IfcMatrix4& mat)
{
BOOST_FOREACH(IfcVector3& v, verts) {
for(IfcVector3& v : verts) {
v *= mat;
}
}
@@ -222,7 +222,7 @@ void TempMesh::ComputePolygonNormals(std::vector<IfcVector3>& normals,
}
if(normalize) {
BOOST_FOREACH(IfcVector3& n, normals) {
for(IfcVector3& n : normals) {
n.Normalize();
}
}
@@ -383,7 +383,7 @@ void TempMesh::RemoveAdjacentDuplicates()
bool drop = false;
std::vector<IfcVector3>::iterator base = verts.begin();
BOOST_FOREACH(unsigned int& cnt, vertcnt) {
for(unsigned int& cnt : vertcnt) {
if (cnt < 2){
base += cnt;
continue;