Whitespace fix
This commit is contained in:
parent
cb6f7cd54e
commit
5f2c766e0d
1 changed files with 4 additions and 2 deletions
|
|
@ -228,12 +228,14 @@ balance_t::commodity_amount(const optional<const commodity_t&>& commodity) const
|
|||
return temp.commodity_amount(commodity);
|
||||
|
||||
throw_(amount_error,
|
||||
_("Requested amount of a balance with multiple commodities: %1") << temp);
|
||||
_("Requested amount of a balance with multiple commodities: %1")
|
||||
<< temp);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else if (amounts.size() > 0) {
|
||||
amounts_map::const_iterator i = amounts.find(&*commodity);
|
||||
amounts_map::const_iterator i =
|
||||
amounts.find(const_cast<commodity_t *>(&*commodity));
|
||||
if (i != amounts.end())
|
||||
return i->second;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue