summaryrefslogtreecommitdiff
path: root/balance.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-15 02:55:16 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:32 -0400
commita087e6ea97494d97580c97705c665cac317a0dc3 (patch)
treed771c7f88f5b6255cb46b2d69aeec9395b3f982d /balance.cc
parent691c29a696d2347faebd5663da9d1dc751f275eb (diff)
downloadfork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.gz
fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.bz2
fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.zip
Cleared out all warnings; started work on getting Python up again.
Diffstat (limited to 'balance.cc')
-rw-r--r--balance.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/balance.cc b/balance.cc
index 4bce6d70..3422a4e7 100644
--- a/balance.cc
+++ b/balance.cc
@@ -64,10 +64,10 @@ datetime_t balance_t::date() const
for (amounts_map::const_iterator i = amounts.begin();
i != amounts.end();
i++) {
- datetime_t date = (*i).second.date();
- if (! temp && date)
- temp = date;
- else if (temp != date)
+ datetime_t tdate = (*i).second.date();
+ if (! temp && tdate)
+ temp = tdate;
+ else if (temp != tdate)
return datetime_t();
}
@@ -320,6 +320,7 @@ balance_t::operator amount_t() const
} // namespace ledger
+#if 0
#ifdef USE_BOOST_PYTHON
#include <boost/python.hpp>
@@ -528,3 +529,4 @@ void export_balance()
}
#endif // USE_BOOST_PYTHON
+#endif