diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-23 19:07:30 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-23 19:07:30 -0400 |
commit | 944c63e6f26d1f05ba6f63c60f510d3796872f3e (patch) | |
tree | e1fc54319c2c42c16a64e95930acaca063658863 /src/compare.cc | |
parent | 057506ab6dddbfb75d1bb29289602f375ca57df5 (diff) | |
download | fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.gz fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.tar.bz2 fork-ledger-944c63e6f26d1f05ba6f63c60f510d3796872f3e.zip |
The Great Renaming, Part II
The last commit did not contain the majority of changes because of a
slight mishap. This contains the real changeset.
Diffstat (limited to 'src/compare.cc')
-rw-r--r-- | src/compare.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compare.cc b/src/compare.cc index 79e49461..d716bcda 100644 --- a/src/compare.cc +++ b/src/compare.cc @@ -71,21 +71,21 @@ void compare_items<T>::find_sort_values(std::list<sort_value_t>& sort_values, } template <> -bool compare_items<xact_t>::operator()(xact_t * left, xact_t * right) +bool compare_items<post_t>::operator()(post_t * left, post_t * right) { assert(left); assert(right); - xact_t::xdata_t& lxdata(left->xdata()); - if (! lxdata.has_flags(XACT_EXT_SORT_CALC)) { + post_t::xdata_t& lxdata(left->xdata()); + if (! lxdata.has_flags(POST_EXT_SORT_CALC)) { find_sort_values(lxdata.sort_values, left); - lxdata.add_flags(XACT_EXT_SORT_CALC); + lxdata.add_flags(POST_EXT_SORT_CALC); } - xact_t::xdata_t& rxdata(right->xdata()); - if (! rxdata.has_flags(XACT_EXT_SORT_CALC)) { + post_t::xdata_t& rxdata(right->xdata()); + if (! rxdata.has_flags(POST_EXT_SORT_CALC)) { find_sort_values(rxdata.sort_values, right); - rxdata.add_flags(XACT_EXT_SORT_CALC); + rxdata.add_flags(POST_EXT_SORT_CALC); } return sort_value_is_less_than(lxdata.sort_values, rxdata.sort_values); |