summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-02-04 19:47:49 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-02-05 00:00:38 -0500
commit6870c54644ba41fe360d43d27885ded46beac7c5 (patch)
treed40ddf017c4364b258c08eccc3ea53b5355eddb0 /src/value.cc
parent9d61d3d621606f0158a048628c866a692465d886 (diff)
downloadfork-ledger-6870c54644ba41fe360d43d27885ded46beac7c5.tar.gz
fork-ledger-6870c54644ba41fe360d43d27885ded46beac7c5.tar.bz2
fork-ledger-6870c54644ba41fe360d43d27885ded46beac7c5.zip
Refactored some comparison helper classes
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.cc b/src/value.cc
index cce4c4e8..7d079caf 100644
--- a/src/value.cc
+++ b/src/value.cc
@@ -861,7 +861,7 @@ bool value_t::is_less_than(const value_t& val) const
return as_amount() < val.as_amount();
}
catch (const amount_error&) {
- return compare_amount_commodities()(&as_amount(), &val.as_amount());
+ return commodity_t::compare_by_commodity()(&as_amount(), &val.as_amount());
}
default:
break;