summaryrefslogtreecommitdiff
path: root/src/balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-30 17:55:16 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-30 17:55:16 -0400
commit5f2c766e0dc5405c9fa86c39a521bd48079d4b30 (patch)
tree00cdd494858caea20ae82254f8e0a7ef0578d3bc /src/balance.cc
parentcb6f7cd54e24aa31b0ba163dfb5680e4a7795228 (diff)
downloadfork-ledger-5f2c766e0dc5405c9fa86c39a521bd48079d4b30.tar.gz
fork-ledger-5f2c766e0dc5405c9fa86c39a521bd48079d4b30.tar.bz2
fork-ledger-5f2c766e0dc5405c9fa86c39a521bd48079d4b30.zip
Whitespace fix
Diffstat (limited to 'src/balance.cc')
-rw-r--r--src/balance.cc6
1 files changed, 4 insertions, 2 deletions
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<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;
}