diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-01 04:36:49 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:35 -0400 |
commit | e92bcf411d2e9a55969303ba3893a017152d7c18 (patch) | |
tree | e7b52d09751de39c86ede91f88a2fcf24facfb27 /src/format.h | |
parent | 50a9caf302936ba6f61bbe05b4718f199d0d584c (diff) | |
download | fork-ledger-e92bcf411d2e9a55969303ba3893a017152d7c18.tar.gz fork-ledger-e92bcf411d2e9a55969303ba3893a017152d7c18.tar.bz2 fork-ledger-e92bcf411d2e9a55969303ba3893a017152d7c18.zip |
Started using boost::optional<T>.
Diffstat (limited to 'src/format.h')
-rw-r--r-- | src/format.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/format.h b/src/format.h index e271fcf7..e169011f 100644 --- a/src/format.h +++ b/src/format.h @@ -32,13 +32,13 @@ class format_t switch (kind) { case TEXT: - delete chars; + checked_delete(chars); break; case XPATH: - delete xpath; + checked_delete(xpath); break; case GROUP: - delete format; + checked_delete(format); break; default: assert(! chars); @@ -75,7 +75,7 @@ class format_t for (std::list<element_t *>::iterator i = elements.begin(); i != elements.end(); i++) - delete *i; + checked_delete(*i); elements.clear(); } |