[geos-commits] r3811 - trunk/src/algorithm

svn_geos at osgeo.org svn_geos at osgeo.org
Fri Jun 7 02:10:16 PDT 2013


Author: mloskot
Date: 2013-06-07 02:10:16 -0700 (Fri, 07 Jun 2013)
New Revision: 3811

Modified:
   trunk/src/algorithm/InteriorPointArea.cpp
Log:
* Disable copy constructor and assignment operator.
* Correct int and std::size_t mismatch for 64-bit target.

Modified: trunk/src/algorithm/InteriorPointArea.cpp
===================================================================
--- trunk/src/algorithm/InteriorPointArea.cpp	2013-06-07 09:02:07 UTC (rev 3810)
+++ trunk/src/algorithm/InteriorPointArea.cpp	2013-06-07 09:10:16 UTC (rev 3811)
@@ -90,7 +90,7 @@
 	  
 	  void process(const LineString& line) {
       const CoordinateSequence* seq = line.getCoordinatesRO();
-      for (int i = 0, s = seq->size(); i < s; i++) {
+      for (std::size_t i = 0, s = seq->size(); i < s; i++) {
         double y = seq->getY(i);
         updateInterval(y);
       }
@@ -107,6 +107,9 @@
         }
       }
     }
+
+    SafeBisectorFinder(SafeBisectorFinder const&); /*= delete*/
+    SafeBisectorFinder& operator=(SafeBisectorFinder const&); /*= delete*/
   };
 
 } // anonymous namespace



More information about the geos-commits mailing list