Преглед на файлове

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

escherstair преди 6 години
родител
ревизия
3ef0860f30
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;
     }
     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.
             IfcVector3& n = normals[std::distance(begin,iit)];
             const IfcFloat area = n.SquareLength();