diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-04 04:29:10 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-04 04:29:10 -0400 |
commit | 2d63c9364af57c732003afc7adddeb8ce62a1988 (patch) | |
tree | 8b5ac531fdebe6e25c77b6fefc41b3d0bfec58a9 /src/amount.cc | |
parent | dcac3064670e6b4f4b8759d9adf54e8569ec4786 (diff) | |
download | fork-ledger-2d63c9364af57c732003afc7adddeb8ce62a1988.tar.gz fork-ledger-2d63c9364af57c732003afc7adddeb8ce62a1988.tar.bz2 fork-ledger-2d63c9364af57c732003afc7adddeb8ce62a1988.zip |
Changed many assert() calls to VERIFY()
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/amount.cc b/src/amount.cc index f6b3edfb..3a1fd0ad 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -129,7 +129,7 @@ void amount_t::shutdown() void amount_t::_copy(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (quantity != amt.quantity) { if (quantity) @@ -231,7 +231,7 @@ amount_t& amount_t::operator=(const amount_t& amt) int amount_t::compare(const amount_t& amt) const { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -266,7 +266,7 @@ bool amount_t::operator==(const amount_t& amt) const amount_t& amount_t::operator+=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -297,7 +297,7 @@ amount_t& amount_t::operator+=(const amount_t& amt) amount_t& amount_t::operator-=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -328,7 +328,7 @@ amount_t& amount_t::operator-=(const amount_t& amt) amount_t& amount_t::operator*=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) @@ -359,7 +359,7 @@ amount_t& amount_t::operator*=(const amount_t& amt) amount_t& amount_t::operator/=(const amount_t& amt) { - assert(amt.valid()); + VERIFY(amt.valid()); if (! quantity || ! amt.quantity) { if (quantity) |