From c11d32571246e51f401deee88f4ebd752b467fdc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 4 Mar 2009 23:53:43 -0400 Subject: Reduced the #include dependency tree to a minimum --- src/balance.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/balance.h') diff --git a/src/balance.h b/src/balance.h index ea0e3a4e..15657c5e 100644 --- a/src/balance.h +++ b/src/balance.h @@ -49,7 +49,7 @@ #ifndef _BALANCE_H #define _BALANCE_H -#include "commodity.h" +#include "amount.h" namespace ledger { @@ -115,21 +115,9 @@ public: if (! amt.is_realzero()) amounts.insert(amounts_map::value_type(&amt.commodity(), amt)); } - balance_t(const double val) { - TRACE_CTOR(balance_t, "const double"); - amounts.insert - (amounts_map::value_type(amount_t::current_pool->null_commodity, val)); - } - balance_t(const unsigned long val) { - TRACE_CTOR(balance_t, "const unsigned long"); - amounts.insert - (amounts_map::value_type(amount_t::current_pool->null_commodity, val)); - } - balance_t(const long val) { - TRACE_CTOR(balance_t, "const long"); - amounts.insert - (amounts_map::value_type(amount_t::current_pool->null_commodity, val)); - } + balance_t(const double val); + balance_t(const unsigned long val); + balance_t(const long val); explicit balance_t(const string& val) { TRACE_CTOR(balance_t, "const string&"); -- cgit v1.2.3