Browse Source

prefer prefix ++/-- operators for non-primitive types

escherstair 6 years ago
parent
commit
3ef0860f30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/Importer/IFC/IFCGeometry.cpp

+ 1 - 1
code/Importer/IFC/IFCGeometry.cpp

@@ -128,7 +128,7 @@ void ProcessPolygonBoundaries(TempMesh& result, const TempMesh& inmesh, size_t m
         outer_polygon_it = begin + master_bounds;
         outer_polygon_it = begin + master_bounds;
     }
     }
     else {
     else {
-        for(iit = begin; iit != end; iit++) {
+        for(iit = begin; iit != end; ++iit) {
             // find the polygon with the largest area and take it as the outer bound.
             // find the polygon with the largest area and take it as the outer bound.
             IfcVector3& n = normals[std::distance(begin,iit)];
             IfcVector3& n = normals[std::distance(begin,iit)];
             const IfcFloat area = n.SquareLength();
             const IfcFloat area = n.SquareLength();