From 96d6d62ad94082ca777c2c88b88e0346a5d00e65 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 3 Mar 2006 09:45:44 +0000 Subject: Began support for improved commodity handling. --- balance.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'balance.h') diff --git a/balance.h b/balance.h index d258e622..766837c9 100644 --- a/balance.h +++ b/balance.h @@ -147,7 +147,7 @@ class balance_t balance_t& operator*=(const amount_t& amt) { // Multiplying by the null commodity causes all amounts to be // increased by the same factor. - if (amt.commodity().symbol.empty()) { + if (! amt.commodity()) { for (amounts_map::iterator i = amounts.begin(); i != amounts.end(); i++) @@ -172,7 +172,7 @@ class balance_t balance_t& operator/=(const amount_t& amt) { // Dividing by the null commodity causes all amounts to be // increased by the same factor. - if (amt.commodity().symbol.empty()) { + if (! amt.commodity()) { for (amounts_map::iterator i = amounts.begin(); i != amounts.end(); i++) -- cgit v1.2.3