From 56a1b65e5a572a70eeec34575218a9e692ee7b9d Mon Sep 17 00:00:00 2001 From: "sgunderson@bigfoot.com" <> Date: Fri, 23 Sep 2011 23:40:12 +0200 Subject: [PATCH] In php5-swig, take in std::string as filename parameter now that we have the right typemap in place. --- php5-swig/xml-template.swig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php5-swig/xml-template.swig b/php5-swig/xml-template.swig index 02314f0..9c59ff8 100644 --- a/php5-swig/xml-template.swig +++ b/php5-swig/xml-template.swig @@ -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); -- 2.39.2