From 6870c54644ba41fe360d43d27885ded46beac7c5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 4 Feb 2010 19:47:49 -0500 Subject: Refactored some comparison helper classes --- src/commodity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commodity.cc') diff --git a/src/commodity.cc b/src/commodity.cc index 79ed77fe..24016830 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -587,8 +587,8 @@ bool commodity_t::valid() const return true; } -bool compare_amount_commodities::operator()(const amount_t * left, - const amount_t * right) const +bool commodity_t::compare_by_commodity::operator()(const amount_t * left, + const amount_t * right) const { commodity_t& leftcomm(left->commodity()); commodity_t& rightcomm(right->commodity()); -- cgit v1.2.3