summaryrefslogtreecommitdiff
path: root/src/draft.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-18 01:01:30 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-18 01:01:30 -0500
commitf9088f88360019bb4be8743dd8091036502adb9c (patch)
tree8a4fe8e1bba0ccc65a1809874ebbd249577fba57 /src/draft.h
parente7d26d53cfc73cc706a6b4903f5c5d6641bdeae8 (diff)
downloadfork-ledger-f9088f88360019bb4be8743dd8091036502adb9c.tar.gz
fork-ledger-f9088f88360019bb4be8743dd8091036502adb9c.tar.bz2
fork-ledger-f9088f88360019bb4be8743dd8091036502adb9c.zip
Added --verify-memory and missing TRACE_[CD]TOR calls
Diffstat (limited to 'src/draft.h')
-rw-r--r--src/draft.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/draft.h b/src/draft.h
index 41485731..e5d29134 100644
--- a/src/draft.h
+++ b/src/draft.h
@@ -68,12 +68,22 @@ class draft_t : public expr_base_t<value_t>
optional<string> cost_operator;
optional<amount_t> cost;
- post_template_t() : from(false) {}
+ post_template_t() : from(false) {
+ TRACE_CTOR(post_template_t, "");
+ }
+ ~post_template_t() throw() {
+ TRACE_DTOR(post_template_t);
+ }
};
std::list<post_template_t> posts;
- xact_template_t() {}
+ xact_template_t() {
+ TRACE_CTOR(xact_template_t, "");
+ }
+ ~xact_template_t() throw() {
+ TRACE_DTOR(xact_template_t);
+ }
void dump(std::ostream& out) const;
};
@@ -86,7 +96,7 @@ public:
if (! args.empty())
parse_args(args);
}
- virtual ~draft_t() {
+ virtual ~draft_t() throw() {
TRACE_DTOR(draft_t);
}