summaryrefslogtreecommitdiffstats
path: root/src/io
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-04 01:01:15 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-04 01:01:15 +0000
commite36b55fc22df7631393784974077c5f7a1b00e67 (patch)
tree23d9394249fa9b6e95817a473b422dc3126cb53c /src/io
parentFix bug [ 1811188 ] save as PS/EPS crashes (diff)
downloadinkscape-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/io')
-rw-r--r--src/io/inkscapestream.h6
-rw-r--r--src/io/xsltstream.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/io/inkscapestream.h b/src/io/inkscapestream.h
index 4388a2815..67c51cc7f 100644
--- a/src/io/inkscapestream.h
+++ b/src/io/inkscapestream.h
@@ -27,7 +27,7 @@ public:
{ reason = theReason; }
StreamException(Glib::ustring &theReason) throw()
{ reason = theReason; }
- ~StreamException() throw()
+ virtual ~StreamException() throw()
{ }
char const *what() const throw()
{ return reason.c_str(); }
@@ -424,7 +424,7 @@ public:
StdReader();
- ~StdReader();
+ virtual ~StdReader();
/*Overload these 3 for your implementation*/
virtual int available();
@@ -636,7 +636,7 @@ class StdWriter : public BasicWriter
public:
StdWriter();
- ~StdWriter();
+ virtual ~StdWriter();
virtual void close();
diff --git a/src/io/xsltstream.h b/src/io/xsltstream.h
index 5e293abc6..13d9550fa 100644
--- a/src/io/xsltstream.h
+++ b/src/io/xsltstream.h
@@ -37,7 +37,7 @@ public:
XsltStyleSheet(InputStream &source) throw (StreamException);
- ~XsltStyleSheet();
+ virtual ~XsltStyleSheet();
xsltStylesheetPtr stylesheet;