summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-27 10:08:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:31 -0400
commit0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f (patch)
tree750d64f6817282a6f4744058f73164a2996f6b03 /amount.h
parentd01629148383261d7944e91fd2ac67b334a6834d (diff)
downloadfork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.gz
fork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.tar.bz2
fork-ledger-0eb597a681115d6d5dd2ea4511fa3b8c7b3d9c9f.zip
Restructured the code to use the new utility code in utils.h.
Diffstat (limited to 'amount.h')
-rw-r--r--amount.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/amount.h b/amount.h
index 6575a82e..9592e25e 100644
--- a/amount.h
+++ b/amount.h
@@ -746,16 +746,10 @@ inline commodity_t& amount_t::commodity() const {
return *commodity_;
}
-
void parse_conversion(const string& larger_str,
const string& smaller_str);
-
-class amount_error : public error {
- public:
- amount_error(const string& _reason) throw() : error(_reason) {}
- virtual ~amount_error() throw() {}
-};
+DECLARE_EXCEPTION(amount_exception);
struct compare_amount_commodities {
bool operator()(const amount_t * left, const amount_t * right) const;