diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-13 11:44:52 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-13 11:44:52 +0000 |
commit | f77cd703422a5a3f9f177875c167188085cd7bbf (patch) | |
tree | a13d6b42ae56bcc5beb1474951e2abf5a477853c /dev-libs/dvenv/files | |
parent | Revision bump; only install API docs if USE=doc and even then at least instal... (diff) | |
download | gentoo-2-f77cd703422a5a3f9f177875c167188085cd7bbf.tar.gz gentoo-2-f77cd703422a5a3f9f177875c167188085cd7bbf.tar.bz2 gentoo-2-f77cd703422a5a3f9f177875c167188085cd7bbf.zip |
Classes with virtual functions require virtual destructors.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'dev-libs/dvenv/files')
-rw-r--r-- | dev-libs/dvenv/files/dvenv-0.2.2-virtual-dtors.diff | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-libs/dvenv/files/dvenv-0.2.2-virtual-dtors.diff b/dev-libs/dvenv/files/dvenv-0.2.2-virtual-dtors.diff new file mode 100644 index 000000000000..f02449c633f7 --- /dev/null +++ b/dev-libs/dvenv/files/dvenv-0.2.2-virtual-dtors.diff @@ -0,0 +1,27 @@ +diff --exclude='*~' --exclude='.*' -I '$Id:' -urN dvenv-0.2.2.orig/dvenv/env.h dvenv-0.2.2/dvenv/env.h +--- dvenv-0.2.2.orig/dvenv/env.h 2005-05-12 23:43:00.000000000 -0400 ++++ dvenv-0.2.2/dvenv/env.h 2005-05-12 23:47:34.000000000 -0400 +@@ -596,6 +596,7 @@ + class iterator { + public: + typedef std::map<std::string,const Env*>::iterator::value_type value_type; ++ virtual ~iterator() { } + virtual iterator& operator++(); + virtual value_type operator*() const; + virtual bool equal(const iterator* i) const; +@@ -721,6 +722,7 @@ + class iterator: public Box::iterator { + public: + iterator(Map::const_iterator it): it_(it) {} ++ virtual ~iterator() { } + iterator& operator++() { ++it_; return *this; } + value_type operator*() const { return *it_; } + bool equal(const Box::iterator* i) const; +@@ -763,6 +765,7 @@ + class iterator: public Box::iterator { + public: + iterator(Vector::const_iterator it, const Vector* v); ++ virtual ~iterator() { } + iterator& operator++() { ++it_; return *this; } + value_type operator*() const; + bool equal(const Box::iterator* i) const; |