summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-01-14 23:21:02 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:49 -0400
commit3e61a94f76c4f30a463ea441376cac22eb6abee8 (patch)
tree26608e4ca72d2d1085fc1bc41492c533f3f6b9a4
parent1d88eca4b65d5de530cda1e63ed94dc18e964078 (diff)
downloadfork-ledger-3e61a94f76c4f30a463ea441376cac22eb6abee8.tar.gz
fork-ledger-3e61a94f76c4f30a463ea441376cac22eb6abee8.tar.bz2
fork-ledger-3e61a94f76c4f30a463ea441376cac22eb6abee8.zip
Added commodity_t::default_commodity. Initialize the same.
-rw-r--r--amount.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/amount.cc b/amount.cc
index 4d95b3bd..8771e944 100644
--- a/amount.cc
+++ b/amount.cc
@@ -48,6 +48,7 @@ static amount_t::bigint_t true_value;
commodity_t::updater_t * commodity_t::updater = NULL;
commodities_map commodity_t::commodities;
commodity_t * commodity_t::null_commodity;
+commodity_t * commodity_t::default_commodity = NULL;
static struct _init_amounts {
_init_amounts() {
@@ -56,8 +57,9 @@ static struct _init_amounts {
mpz_set_ui(true_value.val, 1);
- commodity_t::updater = NULL;
- commodity_t::null_commodity = commodity_t::find_commodity("", true);
+ commodity_t::updater = NULL;
+ commodity_t::null_commodity = commodity_t::find_commodity("", true);
+ commodity_t::default_commodity = NULL;
}
~_init_amounts() {