summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-21 03:24:48 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-21 03:24:48 -0400
commit9350433499396d804c1343bc772894a248434a47 (patch)
tree980ef37f4de510baaf984651790de7ed5b2f793c
parent8eaa76d11c43981ca4ac6b57accc419e7e90e3fe (diff)
downloadfork-ledger-9350433499396d804c1343bc772894a248434a47.tar.gz
fork-ledger-9350433499396d804c1343bc772894a248434a47.tar.bz2
fork-ledger-9350433499396d804c1343bc772894a248434a47.zip
added virtual destructor to parser_t
-rw-r--r--parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 3ced3432..19ceb35a 100644
--- a/parser.h
+++ b/parser.h
@@ -11,6 +11,8 @@ typedef std::list<parser_t *> parsers_list;
class parser_t
{
public:
+ virtual ~parser_t() {}
+
virtual bool test(std::istream& in) const = 0;
virtual unsigned int parse(std::istream& in,