summaryrefslogtreecommitdiff
path: root/src/xml.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-05-30 02:20:34 -0600
committerJohn Wiegley <johnw@newartisans.com>2010-05-30 02:38:30 -0600
commit8f17d01f5e48ae5097f4cb38d481b00577329b8c (patch)
tree2db7a0f4b156ec88cf4d785b9d7a4ea2dae60a07 /src/xml.h
parent7ec52d2b395bf4cfc656eef52d72b9d83c1c1523 (diff)
downloadledger-8f17d01f5e48ae5097f4cb38d481b00577329b8c.tar.gz
ledger-8f17d01f5e48ae5097f4cb38d481b00577329b8c.tar.bz2
ledger-8f17d01f5e48ae5097f4cb38d481b00577329b8c.zip
Added new required item_handler_t::clear() method
Diffstat (limited to 'src/xml.h')
-rw-r--r--src/xml.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xml.h b/src/xml.h
index 320096f8..5d14dab3 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -83,6 +83,14 @@ public:
virtual void flush();
virtual void operator()(post_t& post);
+
+ virtual void clear() {
+ commodities.clear();
+ transactions_set.clear();
+ transactions.clear();
+
+ item_handler<post_t>::clear();
+ }
};
} // namespace ledger