diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-04 23:53:43 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-04 23:53:43 -0400 |
commit | c11d32571246e51f401deee88f4ebd752b467fdc (patch) | |
tree | ccfe6c759d1f2f46a501495eeedecc8c679865d7 /src/balance.h | |
parent | 9a47298d811496816903515bdba7652e275cc32a (diff) | |
download | fork-ledger-c11d32571246e51f401deee88f4ebd752b467fdc.tar.gz fork-ledger-c11d32571246e51f401deee88f4ebd752b467fdc.tar.bz2 fork-ledger-c11d32571246e51f401deee88f4ebd752b467fdc.zip |
Reduced the #include dependency tree to a minimum
Diffstat (limited to 'src/balance.h')
-rw-r--r-- | src/balance.h | 20 |
1 files changed, 4 insertions, 16 deletions
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&"); |