diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-25 17:34:23 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-25 17:34:23 -0400 |
commit | ab86cd8c3743ba5ae5c2ef2f7e20c51b870bb7e5 (patch) | |
tree | 1ecbd6da2f73e85960d3d7a560e172b5e15e0913 /ledger.cc | |
parent | 52c7d928c7f39c7c3f4cccaf38560687bfff4b9f (diff) | |
download | fork-ledger-ab86cd8c3743ba5ae5c2ef2f7e20c51b870bb7e5.tar.gz fork-ledger-ab86cd8c3743ba5ae5c2ef2f7e20c51b870bb7e5.tar.bz2 fork-ledger-ab86cd8c3743ba5ae5c2ef2f7e20c51b870bb7e5.zip |
added asserts to, and proof-read, amount.cc
Diffstat (limited to 'ledger.cc')
-rw-r--r-- | ledger.cc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -253,6 +253,12 @@ bool journal_t::valid() const if (! (*i)->valid()) return false; + for (commodities_map::const_iterator i = commodity_t::commodities.begin(); + i != commodity_t::commodities.end(); + i++) + if (! (*i).second->valid()) + return false; + return true; } |