Author: jasons
Date: Thu May 20 09:39:11 2004
New Revision: 20160

Modified:
   xml/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp
Log:
let inherited contstrutors/destructors do the work for us

Modified: xml/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp
==============================================================================
--- xml/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp   (original)
+++ xml/xerces-p/trunk/Handler/PerlContentCallbackHandler.cpp   Thu May 20 09:39:11 
2004
@@ -7,17 +7,11 @@
 }
 
 PerlContentCallbackHandler::~PerlContentCallbackHandler()
-{
-    if (callbackObj != NULL) {
-       SvREFCNT_dec(callbackObj);
-       callbackObj = NULL;
-    }
-}
+{}
 
 PerlContentCallbackHandler::PerlContentCallbackHandler(SV *obj)
-{
-    set_callback_obj(obj);
-}
+  : PerlCallbackHandler(obj)
+{}
 
 // SV*
 // PerlContentCallbackHandler::set_callback_obj(SV* object) {

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to