diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-23 00:36:26 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:39:07 -0400 |
commit | 84ead9153fe5d681276957688c5bf565bdf5b445 (patch) | |
tree | ecd0f330674f96a5557ae51ce6d45ef193693c9d /src/numerics/amount.cc | |
parent | 5054147043f10241ec11b41195ff682090edfd2a (diff) | |
download | fork-ledger-84ead9153fe5d681276957688c5bf565bdf5b445.tar.gz fork-ledger-84ead9153fe5d681276957688c5bf565bdf5b445.tar.bz2 fork-ledger-84ead9153fe5d681276957688c5bf565bdf5b445.zip |
Just a few minor corrections.
Diffstat (limited to 'src/numerics/amount.cc')
-rw-r--r-- | src/numerics/amount.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/numerics/amount.cc b/src/numerics/amount.cc index 7bc2841c..c7139052 100644 --- a/src/numerics/amount.cc +++ b/src/numerics/amount.cc @@ -770,7 +770,7 @@ void amount_t::annotate_commodity(const annotation_t& details) throw_(amount_error, "Cannot annotate an amount with no commodity"); if (commodity().annotated) { - this_ann = &commodity().as_annotated(); + this_ann = &as_annotated_commodity(commodity()); this_base = &this_ann->referent(); } else { this_base = &commodity(); @@ -797,7 +797,7 @@ bool amount_t::commodity_annotated() const throw_(amount_error, "Cannot determine if an uninitialized amount's commodity is annotated"); - assert(! commodity().annotated || commodity().as_annotated().details); + assert(! commodity().annotated || as_annotated_commodity(commodity()).details); return commodity().annotated; } @@ -807,10 +807,10 @@ annotation_t amount_t::annotation_details() const throw_(amount_error, "Cannot return commodity annotation details of an uninitialized amount"); - assert(! commodity().annotated || commodity().as_annotated().details); + assert(! commodity().annotated || as_annotated_commodity(commodity()).details); if (commodity().annotated) { - annotated_commodity_t& ann_comm(commodity().as_annotated()); + annotated_commodity_t& ann_comm(as_annotated_commodity(commodity())); return ann_comm.details; } return annotation_t(); @@ -829,7 +829,7 @@ amount_t amount_t::strip_annotations(const bool _keep_price, return *this; amount_t t(*this); - t.set_commodity(commodity().as_annotated(). + t.set_commodity(as_annotated_commodity(commodity()). strip_annotations(_keep_price, _keep_date, _keep_tag)); return t; } |