From 5f2c766e0dc5405c9fa86c39a521bd48079d4b30 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 30 Oct 2009 17:55:16 -0400 Subject: Whitespace fix --- src/balance.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/balance.cc b/src/balance.cc index 86352fa2..37628bd2 100644 --- a/src/balance.cc +++ b/src/balance.cc @@ -228,12 +228,14 @@ balance_t::commodity_amount(const optional& 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)); if (i != amounts.end()) return i->second; } -- cgit v1.2.3