summaryrefslogtreecommitdiff
path: root/src/balance.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-04 23:53:43 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-04 23:53:43 -0400
commitc11d32571246e51f401deee88f4ebd752b467fdc (patch)
treeccfe6c759d1f2f46a501495eeedecc8c679865d7 /src/balance.h
parent9a47298d811496816903515bdba7652e275cc32a (diff)
downloadfork-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.h20
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&");