Added commodity_t::default_commodity. Initialize the same.
This commit is contained in:
parent
1d88eca4b6
commit
3e61a94f76
1 changed files with 4 additions and 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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue