summaryrefslogtreecommitdiff
path: root/balance.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-20 02:13:48 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:28 -0400
commit539370ff1b37772e9f11439f652ffd3583beeedb (patch)
tree69e8b0a0aee571d7335eae4c6693829745de1484 /balance.h
parent0a6b5726ec3bf402a953ea8a03b98ecbf4b90b0c (diff)
downloadfork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.tar.gz
fork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.tar.bz2
fork-ledger-539370ff1b37772e9f11439f652ffd3583beeedb.zip
More refactoring
Diffstat (limited to 'balance.h')
-rw-r--r--balance.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/balance.h b/balance.h
index 5270c1a0..f0cb0563 100644
--- a/balance.h
+++ b/balance.h
@@ -430,9 +430,9 @@ class balance_t
amount_t amount(const commodity_t& commodity =
*commodity_t::null_commodity) const;
- balance_t value(const ptime& moment = now) const;
+ balance_t value(const moment_t& moment = now) const;
balance_t price() const;
- ptime date() const;
+ moment_t date() const;
balance_t
strip_annotations(const bool keep_price = amount_t::keep_price,
@@ -889,13 +889,13 @@ class balance_pair_t
*commodity_t::null_commodity) const {
return quantity.amount(commodity);
}
- balance_t value(const ptime& moment = now) const {
+ balance_t value(const moment_t& moment = now) const {
return quantity.value(moment);
}
balance_t price() const {
return quantity.price();
}
- ptime date() const {
+ moment_t date() const {
return quantity.date();
}