summaryrefslogtreecommitdiff
path: root/src/iterators.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-05 20:41:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-05 20:41:48 -0400
commit9f9339c5c5056770e7b26e2541882dd64f3ea5c6 (patch)
treeb9cc1e38ac7a614aeae8750616634889c65883a3 /src/iterators.h
parent89d86d5265832d8c23698572c46fbc1725f6af9c (diff)
downloadfork-ledger-9f9339c5c5056770e7b26e2541882dd64f3ea5c6.tar.gz
fork-ledger-9f9339c5c5056770e7b26e2541882dd64f3ea5c6.tar.bz2
fork-ledger-9f9339c5c5056770e7b26e2541882dd64f3ea5c6.zip
Added missing virtual specifiers on some destructors.
Diffstat (limited to 'src/iterators.h')
-rw-r--r--src/iterators.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iterators.h b/src/iterators.h
index c52a6827..50cbffae 100644
--- a/src/iterators.h
+++ b/src/iterators.h
@@ -41,6 +41,7 @@ namespace ledger {
class xacts_iterator : public noncopyable
{
public:
+ virtual ~xacts_iterator() throw() {}
virtual xact_t * operator()() = 0;
};
@@ -100,7 +101,7 @@ public:
TRACE_CTOR(entries_iterator, "session_t&");
reset(session);
}
- ~entries_iterator() throw() {
+ virtual ~entries_iterator() throw() {
TRACE_DTOR(entries_iterator);
}
@@ -134,6 +135,7 @@ public:
class accounts_iterator : public noncopyable
{
public:
+ virtual ~accounts_iterator() throw() {}
virtual account_t * operator()() = 0;
};