Added some missing DEBUG #if's
This commit is contained in:
parent
04f884b14f
commit
7bb83173da
5 changed files with 12 additions and 0 deletions
|
|
@ -93,7 +93,9 @@ account_t * account_t::find_account(const string& acct_name,
|
|||
std::pair<accounts_map::iterator, bool> result =
|
||||
#endif
|
||||
accounts.insert(accounts_map::value_type(first, account));
|
||||
#if defined(DEBUG_ON)
|
||||
assert(result.second);
|
||||
#endif
|
||||
} else {
|
||||
account = (*i).second;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -891,7 +891,9 @@ void subtotal_posts::operator()(post_t& post)
|
|||
std::pair<values_map::iterator, bool> result =
|
||||
#endif
|
||||
values.insert(values_pair(acct->fullname(), acct_value_t(acct, temp)));
|
||||
#if defined(DEBUG_ON)
|
||||
assert(result.second);
|
||||
#endif
|
||||
} else {
|
||||
post.add_to_value((*i).second.value, amount_expr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,9 @@ commodity_t * commodity_pool_t::create(const string& symbol)
|
|||
#endif
|
||||
commodities.insert(commodities_map::value_type
|
||||
(commodity->base_symbol(), commodity));
|
||||
#if defined(DEBUG_ON)
|
||||
assert(result.second);
|
||||
#endif
|
||||
|
||||
commodity_price_history.add_commodity(*commodity.get());
|
||||
|
||||
|
|
@ -219,7 +221,9 @@ commodity_pool_t::create(commodity_t& comm,
|
|||
annotated_commodities.insert(annotated_commodities_map::value_type
|
||||
(annotated_commodities_map::key_type
|
||||
(comm.symbol(), details), commodity));
|
||||
#if defined(DEBUG_ON)
|
||||
assert(result.second);
|
||||
#endif
|
||||
|
||||
return commodity.get();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -950,7 +950,9 @@ void instance_t::account_alias_directive(account_t * account, string alias)
|
|||
#endif
|
||||
context.journal->account_aliases.insert
|
||||
(accounts_map::value_type(alias, account));
|
||||
#if defined(DEBUG_ON)
|
||||
assert(result.second);
|
||||
#endif
|
||||
}
|
||||
|
||||
void instance_t::alias_directive(char * line)
|
||||
|
|
|
|||
|
|
@ -346,7 +346,9 @@ bool xact_base_t::finalize()
|
|||
as_annotated_commodity(*pair.first).details :
|
||||
annotation_t()),
|
||||
pair.second));
|
||||
#if defined(DEBUG_ON)
|
||||
assert(result.second);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool first = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue