summaryrefslogtreecommitdiff
path: root/src/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-09 03:19:38 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-09 03:25:53 -0600
commitca8f702a1b18f2f114cd580abe59f03fb85e4803 (patch)
tree2f4e820ca842dbc9c39461acd767c2baad4f3236 /src/amount.h
parent628875b33c4f1cd202091c9347ef0176f8b688fa (diff)
downloadfork-ledger-ca8f702a1b18f2f114cd580abe59f03fb85e4803.tar.gz
fork-ledger-ca8f702a1b18f2f114cd580abe59f03fb85e4803.tar.bz2
fork-ledger-ca8f702a1b18f2f114cd580abe59f03fb85e4803.zip
Added amount_t::commodity_ptr()
Diffstat (limited to 'src/amount.h')
-rw-r--r--src/amount.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amount.h b/src/amount.h
index 09256b5d..7bf4fe51 100644
--- a/src/amount.h
+++ b/src/amount.h
@@ -533,6 +533,7 @@ public:
number() returns a commodity-less version of an amount. This is
useful for accessing just the numeric portion of an amount.
*/
+ commodity_t * commodity_ptr() const;
commodity_t& commodity() const;
bool has_commodity() const;