diff options
author | John Wiegley <johnw@newartisans.com> | 2010-02-04 19:47:49 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-02-05 00:00:38 -0500 |
commit | 6870c54644ba41fe360d43d27885ded46beac7c5 (patch) | |
tree | d40ddf017c4364b258c08eccc3ea53b5355eddb0 /src/commodity.cc | |
parent | 9d61d3d621606f0158a048628c866a692465d886 (diff) | |
download | fork-ledger-6870c54644ba41fe360d43d27885ded46beac7c5.tar.gz fork-ledger-6870c54644ba41fe360d43d27885ded46beac7c5.tar.bz2 fork-ledger-6870c54644ba41fe360d43d27885ded46beac7c5.zip |
Refactored some comparison helper classes
Diffstat (limited to 'src/commodity.cc')
-rw-r--r-- | src/commodity.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |