From f27d7776ca8fb29c5a523c859d64f3c570ce8985 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Jan 2017 12:02:15 -0800 Subject: Item sorting should have access to the report scope --- src/chain.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/chain.cc') diff --git a/src/chain.cc b/src/chain.cc index 94afc0fa..da56cd1a 100644 --- a/src/chain.cc +++ b/src/chain.cc @@ -186,9 +186,9 @@ post_handler_ptr chain_post_handlers(post_handler_ptr base_handler, // value expression. if (report.HANDLED(sort_)) { if (report.HANDLED(sort_xacts_)) - handler.reset(new sort_xacts(handler, report.HANDLER(sort_).str())); + handler.reset(new sort_xacts(handler, expr_t(report.HANDLER(sort_).str()), report)); else - handler.reset(new sort_posts(handler, report.HANDLER(sort_).str())); + handler.reset(new sort_posts(handler, report.HANDLER(sort_).str(), report)); } // collapse_posts causes xacts with multiple posts to appear as xacts -- cgit v1.2.3