diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-11-04 01:01:15 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-11-04 01:01:15 +0000 |
| commit | e36b55fc22df7631393784974077c5f7a1b00e67 (patch) | |
| tree | 23d9394249fa9b6e95817a473b422dc3126cb53c /src/libavoid | |
| parent | Fix bug [ 1811188 ] save as PS/EPS crashes (diff) | |
| download | inkscape-e36b55fc22df7631393784974077c5f7a1b00e67.tar.gz inkscape-e36b55fc22df7631393784974077c5f7a1b00e67.zip | |
Add virtual to a lot of the destructors. Note: perhaps it will have to be reverted for some files to keep them C-compatible.
(bzr r4024)
Diffstat (limited to 'src/libavoid')
| -rw-r--r-- | src/libavoid/connector.h | 2 | ||||
| -rw-r--r-- | src/libavoid/graph.h | 2 | ||||
| -rw-r--r-- | src/libavoid/shape.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/libavoid/connector.h b/src/libavoid/connector.h index a313e3bb4..64afb4dda 100644 --- a/src/libavoid/connector.h +++ b/src/libavoid/connector.h @@ -42,7 +42,7 @@ class ConnRef ConnRef(Router *router, const unsigned int id); ConnRef(Router *router, const unsigned int id, const Point& src, const Point& dst); - ~ConnRef(); + virtual ~ConnRef(); void setType(unsigned int type); PolyLine& route(void); diff --git a/src/libavoid/graph.h b/src/libavoid/graph.h index c4de3df08..05f03a988 100644 --- a/src/libavoid/graph.h +++ b/src/libavoid/graph.h @@ -43,7 +43,7 @@ class EdgeInf { public: EdgeInf(VertInf *v1, VertInf *v2); - ~EdgeInf(); + virtual ~EdgeInf(); inline double getDist(void) { return _dist; diff --git a/src/libavoid/shape.h b/src/libavoid/shape.h index 28f38298d..b654c6eea 100644 --- a/src/libavoid/shape.h +++ b/src/libavoid/shape.h @@ -39,7 +39,7 @@ class ShapeRef { public: ShapeRef(Router *router, unsigned int id, Polygn& poly); - ~ShapeRef(); + virtual ~ShapeRef(); void setNewPoly(Polygn& poly); VertInf *firstVert(void); VertInf *lastVert(void); |
