From 84ead9153fe5d681276957688c5bf565bdf5b445 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 23 May 2007 00:36:26 +0000 Subject: Just a few minor corrections. --- src/numerics/amount.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/numerics/amount.cc') 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; } -- cgit v1.2.3