[geos-commits] r3932 - trunk/include/geos/triangulate/quadedge

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Aug 28 05:48:33 PDT 2013


Author: mloskot
Date: 2013-08-28 05:48:33 -0700 (Wed, 28 Aug 2013)
New Revision: 3932

Modified:
   trunk/include/geos/triangulate/quadedge/QuadEdge.h
   trunk/include/geos/triangulate/quadedge/QuadEdgeSubdivision.h
Log:
Declare QuadEdge and QuadEdgeSubdivision constructors as virtual to correct deleting object of polymorphic type.

Modified: trunk/include/geos/triangulate/quadedge/QuadEdge.h
===================================================================
--- trunk/include/geos/triangulate/quadedge/QuadEdge.h	2013-08-28 12:46:04 UTC (rev 3931)
+++ trunk/include/geos/triangulate/quadedge/QuadEdge.h	2013-08-28 12:48:33 UTC (rev 3932)
@@ -110,7 +110,7 @@
 	QuadEdge();
 
 public:
-	~QuadEdge();
+	virtual ~QuadEdge();
 
 	/**
 	 * Free the QuadEdge quartet associated with this QuadEdge by a connect()

Modified: trunk/include/geos/triangulate/quadedge/QuadEdgeSubdivision.h
===================================================================
--- trunk/include/geos/triangulate/quadedge/QuadEdgeSubdivision.h	2013-08-28 12:46:04 UTC (rev 3931)
+++ trunk/include/geos/triangulate/quadedge/QuadEdgeSubdivision.h	2013-08-28 12:48:33 UTC (rev 3932)
@@ -112,7 +112,7 @@
 	 */
 	QuadEdgeSubdivision(const geom::Envelope &env, double tolerance);
 
-	~QuadEdgeSubdivision();
+	virtual ~QuadEdgeSubdivision();
 
 private:
 	virtual void createFrame(const geom::Envelope &env);



More information about the geos-commits mailing list