]> git.sesse.net Git - xml-template/commitdiff
In php5-swig, take in std::string as filename parameter now that we have the right...
authorsgunderson@bigfoot.com <>
Fri, 23 Sep 2011 21:40:12 +0000 (23:40 +0200)
committersgunderson@bigfoot.com <>
Fri, 23 Sep 2011 21:40:12 +0000 (23:40 +0200)
php5-swig/xml-template.swig

index 02314f0e81637b710b1adcebcff23ce52748a486..9c59ff802d3acd155a8559cfe56dcc865e34ee19 100644 (file)
@@ -88,7 +88,7 @@ Directive* convert_php_objects_to_directive(zval *obj)
        return NULL;
 }
 
-XmlDocPtrWrapper XML_Template_process_file(const char *input_filename, Directive *root_directive, bool clean)
+XmlDocPtrWrapper XML_Template_process_file(const std::string &input_filename, Directive *root_directive, bool clean)
 {
        xmlDocPtr ret = process_file(input_filename, root_directive, clean);
        delete root_directive;
@@ -125,6 +125,6 @@ std::string XML_Template_convert_doc_to_string(XmlDocPtrWrapper doc)
        $1 = convert_php_objects_to_directive(*$input);
 }
 
-XmlDocPtrWrapper XML_Template_process_file(const char *input_filename, Directive *root_directive, bool clean);
+XmlDocPtrWrapper XML_Template_process_file(const std::string &input_filename, Directive *root_directive, bool clean);
 std::string XML_Template_convert_doc_to_string(XmlDocPtrWrapper doc);