diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-02 16:57:53 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-02 16:57:53 -0500 |
commit | 3f8c126c798d575d27d199ee3337499f338dc1ee (patch) | |
tree | b0c3f6500f142e4085f889ab498b2f7f65109c2b /src/commodity.cc | |
parent | ede73e8889ce4c5b45ce837f312047b8d259fecf (diff) | |
download | fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.tar.gz fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.tar.bz2 fork-ledger-3f8c126c798d575d27d199ee3337499f338dc1ee.zip |
Use is_annotated() method rather than "annotated"
Diffstat (limited to 'src/commodity.cc')
-rw-r--r-- | src/commodity.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commodity.cc b/src/commodity.cc index 689cf466..26038a0b 100644 --- a/src/commodity.cc +++ b/src/commodity.cc @@ -604,11 +604,11 @@ bool compare_amount_commodities::operator()(const amount_t * left, if (cmp != 0) return cmp < 0; - if (! leftcomm.annotated) { - return rightcomm.annotated; + if (! leftcomm.is_annotated()) { + return rightcomm.is_annotated(); } - else if (! rightcomm.annotated) { - return ! leftcomm.annotated; + else if (! rightcomm.is_annotated()) { + return ! leftcomm.is_annotated(); } else { annotated_commodity_t& aleftcomm(static_cast<annotated_commodity_t&>(leftcomm)); |