From c106bd8b8b015aa433ff94a1c6ef63d82dfb4440 Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Fri, 23 Sep 2011 23:50:04 +0200 Subject: [PATCH] Slightly more idiomatic shared_ptr usage. --- php5-swig/xml-template.swig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php5-swig/xml-template.swig b/php5-swig/xml-template.swig index 5175951..d70e223 100644 --- a/php5-swig/xml-template.swig +++ b/php5-swig/xml-template.swig @@ -76,7 +76,7 @@ Directive* convert_php_objects_to_directive(zval *obj) if (SWIG_ConvertPtr(obj, (void **)&doc, SWIGTYPE_p_XmlDocPtrWrapper, 0) < 0 || doc == NULL) { return NULL; } - return new ReplaceInclude(xmlCopyDoc(doc->get()->ptr, 1)); + return new ReplaceInclude(xmlCopyDoc((*doc)->ptr, 1)); } case IS_NULL: return NULL; -- 2.39.2