]> git.sesse.net Git - xml-template/commitdiff
Slightly more idiomatic shared_ptr usage.
authorsgunderson@bigfoot.com <>
Fri, 23 Sep 2011 21:50:04 +0000 (23:50 +0200)
committersgunderson@bigfoot.com <>
Fri, 23 Sep 2011 21:50:04 +0000 (23:50 +0200)
php5-swig/xml-template.swig

index 517595168d99f6e129cd09560502e98b1a08d05a..d70e223fec9d1355d7727247876bedf630105374 100644 (file)
@@ -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;