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/xpath.cc | |
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/xpath.cc')
-rw-r--r-- | src/xpath.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xpath.cc b/src/xpath.cc index b7927cb4..53d337ea 100644 --- a/src/xpath.cc +++ b/src/xpath.cc @@ -15,7 +15,7 @@ void xpath_t::initialize() void xpath_t::shutdown() { - delete lookahead; + checked_delete(lookahead); lookahead = NULL; } @@ -555,7 +555,7 @@ xpath_t::op_t::~op_t() case VALUE: assert(! left); assert(valuep); - delete valuep; + checked_delete(valuep); break; case NODE_NAME: @@ -564,7 +564,7 @@ xpath_t::op_t::~op_t() case VAR_NAME: assert(! left); assert(name); - delete name; + checked_delete(name); break; case ARG_INDEX: @@ -573,14 +573,14 @@ xpath_t::op_t::~op_t() case FUNCTOR: assert(! left); assert(functor); - delete functor; + checked_delete(functor); break; #if 0 case MASK: assert(! left); assert(mask); - delete mask; + checked_delete(mask); break; #endif |