summaryrefslogtreecommitdiff
path: root/amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-31 05:05:24 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-31 05:05:24 -0400
commit8afd926a27af55862ce360970e05d747f249a0da (patch)
tree3d93c3bedca21da06681bf9868fa3b94ac5050af /amount.cc
parent8276b51f5692796bfdf75dd64f709e0de1c7caaf (diff)
downloadfork-ledger-8afd926a27af55862ce360970e05d747f249a0da.tar.gz
fork-ledger-8afd926a27af55862ce360970e05d747f249a0da.tar.bz2
fork-ledger-8afd926a27af55862ce360970e05d747f249a0da.zip
Cleaned up some method names and documentation relating to values.
Diffstat (limited to 'amount.cc')
-rw-r--r--amount.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/amount.cc b/amount.cc
index c15fbd42..7f849bff 100644
--- a/amount.cc
+++ b/amount.cc
@@ -778,7 +778,7 @@ bool amount_t::fits_in_long() const
}
-void amount_t::annotate_commodity(const annotation_t& details)
+void amount_t::annotate(const annotation_t& details)
{
commodity_t * this_base;
annotated_commodity_t * this_ann = NULL;
@@ -810,7 +810,7 @@ void amount_t::annotate_commodity(const annotation_t& details)
DEBUG("amounts.commodities", " Annotated amount is " << *this);
}
-bool amount_t::commodity_annotated() const
+bool amount_t::annotated() const
{
if (! quantity)
throw_(amount_error,
@@ -820,7 +820,7 @@ bool amount_t::commodity_annotated() const
return commodity().annotated;
}
-annotation_t& amount_t::annotation_details()
+annotation_t& amount_t::annotation()
{
if (! quantity)
throw_(amount_error,