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/iterators.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/iterators.cc') diff --git a/src/iterators.cc b/src/iterators.cc index 88233ea1..398d2684 100644 --- a/src/iterators.cc +++ b/src/iterators.cc @@ -201,7 +201,7 @@ void sorted_accounts_iterator::push_back(account_t& account) std::stable_sort(accounts_list.back().begin(), accounts_list.back().end(), - compare_items(sort_cmp)); + compare_items(sort_cmp, report)); #if DEBUG_ON if (SHOW_DEBUG("account.sorted")) { @@ -234,7 +234,7 @@ void sorted_accounts_iterator::sort_accounts(account_t& account, deque.push_back(pair.second); std::stable_sort(deque.begin(), deque.end(), - compare_items(sort_cmp)); + compare_items(sort_cmp, report)); #if DEBUG_ON if (SHOW_DEBUG("account.sorted")) { -- cgit v1.2.3