[mapserver-commits] r7592 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed May 14 13:48:45 EDT 2008
Author: tbonfort
Date: 2008-05-14 13:48:45 -0400 (Wed, 14 May 2008)
New Revision: 7592
Modified:
trunk/mapserver/mapagg.h
Log:
classes with virtual functions must also provide a virtual destructor (the default one isn't virtual)
Modified: trunk/mapserver/mapagg.h
===================================================================
--- trunk/mapserver/mapagg.h 2008-05-14 17:47:41 UTC (rev 7591)
+++ trunk/mapserver/mapagg.h 2008-05-14 17:48:45 UTC (rev 7592)
@@ -161,6 +161,9 @@
m_pend=&(m_line->point[m_line->numpoints]); /*pointer to after last vertex of first line*/
}
+ //a class with virtual functions should also provide a virtual destructor
+ virtual ~line_adaptor() {}
+
void rewind(unsigned) {
m_line=s->line; /*first line*/
m_point=m_line->point; /*current vertex is first vertex of first line*/
@@ -229,6 +232,9 @@
m_pend=&(m_line->point[m_line->numpoints]); /*pointer to after last vertex of first line*/
}
+ //a class with virtual functions should also provide a virtual destructor
+ virtual ~polygon_adaptor() {}
+
void rewind(unsigned) {
/*reset pointers*/
m_stop=false;
More information about the mapserver-commits
mailing list