From 49a1373debdd5dbcd12721a110fab16fab8b40db Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 12 Feb 2009 22:47:27 -0400 Subject: Renamed a function to sort_value_is_less_than The purpose was to provided a clearer relationship between the function name and its expected arguments. --- src/compare.cc | 4 ++-- src/compare.h | 4 ++-- src/value.cc | 4 ++-- src/value.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/compare.cc b/src/compare.cc index 08f4e74c..5237fb9a 100644 --- a/src/compare.cc +++ b/src/compare.cc @@ -83,7 +83,7 @@ bool compare_items::operator()(xact_t * left, xact_t * right) rxdata.add_flags(XACT_EXT_SORT_CALC); } - return value_is_less_than(lxdata.sort_values, rxdata.sort_values); + return sort_value_is_less_than(lxdata.sort_values, rxdata.sort_values); } template <> @@ -104,7 +104,7 @@ bool compare_items::operator()(account_t * left, account_t * right) rxdata.add_flags(ACCOUNT_EXT_SORT_CALC); } - return value_is_less_than(lxdata.sort_values, rxdata.sort_values); + return sort_value_is_less_than(lxdata.sort_values, rxdata.sort_values); } } // namespace ledger diff --git a/src/compare.h b/src/compare.h index e4d68aa2..bf85e1c7 100644 --- a/src/compare.h +++ b/src/compare.h @@ -86,8 +86,8 @@ template bool compare_items::operator()(T * left, T * right) { assert(left); assert(right); - return value_is_less_than(find_sort_values(left), - find_sort_values(right)); + return sort_value_is_less_than(find_sort_values(left), + find_sort_values(right)); } template <> diff --git a/src/value.cc b/src/value.cc index 8f9b3937..71c6e0fe 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1409,8 +1409,8 @@ bool value_t::valid() const return true; } -bool value_is_less_than(const std::list& left_values, - const std::list& right_values) +bool sort_value_is_less_than(const std::list& left_values, + const std::list& right_values) { std::list::const_iterator left_iter = left_values.begin(); std::list::const_iterator right_iter = right_values.begin(); diff --git a/src/value.h b/src/value.h index c84f507c..e5c76780 100644 --- a/src/value.h +++ b/src/value.h @@ -939,8 +939,8 @@ struct sort_value_t sort_value_t() : inverted(false) {} }; -bool value_is_less_than(const std::list& left_values, - const std::list& right_values); +bool sort_value_is_less_than(const std::list& left_values, + const std::list& right_values); } // namespace ledger -- cgit v1.2.3