diff options
author | John Wiegley <johnw@newartisans.com> | 2005-01-14 23:21:02 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:40:49 -0400 |
commit | 3e61a94f76c4f30a463ea441376cac22eb6abee8 (patch) | |
tree | 26608e4ca72d2d1085fc1bc41492c533f3f6b9a4 | |
parent | 1d88eca4b65d5de530cda1e63ed94dc18e964078 (diff) | |
download | fork-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.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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() { |