You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2004/05/20 18:39:12 UTC

svn commit: rev 20160 - xml/xerces-p/trunk/Handler

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: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org