summaryrefslogtreecommitdiff
path: root/src/chain.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/chain.h
parent7ec52d2b395bf4cfc656eef52d72b9d83c1c1523 (diff)
downloadfork-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.h5
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;