summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-07 10:32:35 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-07 10:32:35 -0600
commitec1f15a4b2ae706dd99aff0d506977486ffef08b (patch)
treeae7df4c38aa532794644722066f37e3a481ec3d8 /src/amount.h
parentb1107f85ae07a85124e58a0e379ec2d9ab47d119 (diff)
downloadfork-ledger-ec1f15a4b2ae706dd99aff0d506977486ffef08b.tar.gz
fork-ledger-ec1f15a4b2ae706dd99aff0d506977486ffef08b.tar.bz2
fork-ledger-ec1f15a4b2ae706dd99aff0d506977486ffef08b.zip
Made amount_t::price return an optional<amount_t>
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amount.h b/src/amount.h
index 1db59b7e..09256b5d 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -407,7 +407,7 @@ public:
value(const optional<datetime_t>& moment = none,
const optional<commodity_t&>& in_terms_of = none) const;
- amount_t price() const;
+ optional<amount_t> price() const;
/*@}*/