diff options
author | John Wiegley <johnw@newartisans.com> | 2010-05-30 02:20:34 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-05-30 02:38:30 -0600 |
commit | 8f17d01f5e48ae5097f4cb38d481b00577329b8c (patch) | |
tree | 2db7a0f4b156ec88cf4d785b9d7a4ea2dae60a07 /src/chain.h | |
parent | 7ec52d2b395bf4cfc656eef52d72b9d83c1c1523 (diff) | |
download | fork-ledger-8f17d01f5e48ae5097f4cb38d481b00577329b8c.tar.gz fork-ledger-8f17d01f5e48ae5097f4cb38d481b00577329b8c.tar.bz2 fork-ledger-8f17d01f5e48ae5097f4cb38d481b00577329b8c.zip |
Added new required item_handler_t::clear() method
Diffstat (limited to 'src/chain.h')
-rw-r--r-- | src/chain.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/chain.h b/src/chain.h index 94d54317..fbde9f0a 100644 --- a/src/chain.h +++ b/src/chain.h @@ -75,6 +75,11 @@ public: (*handler.get())(item); } } + + virtual void clear() { + if (handler) + handler->clear(); + } }; typedef shared_ptr<item_handler<post_t> > post_handler_ptr; |