summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/chain.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/chain.h b/src/chain.h
index fbde9f0a..935f2935 100644
--- a/src/chain.h
+++ b/src/chain.h
@@ -65,14 +65,19 @@ public:
TRACE_DTOR(item_handler);
}
+ virtual void title(const string& str) {
+ if (handler)
+ handler->title(str);
+ }
+
virtual void flush() {
- if (handler.get())
+ if (handler)
handler->flush();
}
virtual void operator()(T& item) {
- if (handler.get()) {
+ if (handler) {
check_for_signal();
- (*handler.get())(item);
+ (*handler)(item);
}
}