From: sgunderson@bigfoot.com <> Date: Fri, 23 Sep 2011 21:50:04 +0000 (+0200) Subject: Slightly more idiomatic shared_ptr usage. X-Git-Url: https://git.sesse.net/?p=xml-template;a=commitdiff_plain;h=c106bd8b8b015aa433ff94a1c6ef63d82dfb4440 Slightly more idiomatic shared_ptr usage. --- 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;