From e92bcf411d2e9a55969303ba3893a017152d7c18 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 1 May 2007 04:36:49 +0000 Subject: Started using boost::optional. --- src/xpath.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/xpath.cc') 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 -- cgit v1.2.3