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/amount.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/amount.cc')
-rw-r--r-- | src/amount.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amount.cc b/src/amount.cc index 3ac47c59..435cdea4 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -783,7 +783,7 @@ void amount_t::annotate(const annotation_t& details) else if (! has_commodity()) return; // ignore attempt to annotate a "bare commodity - if (commodity().annotated) { + if (commodity().is_annotated()) { this_ann = &as_annotated_commodity(commodity()); this_base = &this_ann->referent(); } else { @@ -811,9 +811,9 @@ bool amount_t::is_annotated() const throw_(amount_error, _("Cannot determine if an uninitialized amount's commodity is annotated")); - assert(! has_commodity() || ! commodity().annotated || + assert(! has_commodity() || ! commodity().is_annotated() || as_annotated_commodity(commodity()).details); - return has_commodity() && commodity().annotated; + return has_commodity() && commodity().is_annotated(); } annotation_t& amount_t::annotation() |