From 0fdf19714613a82a184f4f6e75fb9a4f9b62f18a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 19 Jan 2014 10:05:08 +0200 Subject: Use std::unique_ptr instead of std::auto_ptr in C++11 mode --- libxsd/xsd/cxx/parser/xerces/elements.txx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'libxsd/xsd/cxx/parser/xerces/elements.txx') diff --git a/libxsd/xsd/cxx/parser/xerces/elements.txx b/libxsd/xsd/cxx/parser/xerces/elements.txx index 60b6c6d..2324b0c 100644 --- a/libxsd/xsd/cxx/parser/xerces/elements.txx +++ b/libxsd/xsd/cxx/parser/xerces/elements.txx @@ -95,7 +95,7 @@ namespace xsd error_handler eh; xml::sax::bits::error_handler_proxy eh_proxy (eh); - std::auto_ptr sax (create_sax_ (f, p)); + XSD_AUTO_PTR sax (create_sax_ (f, p)); parse (uri, eh_proxy, *sax, f, p); @@ -124,7 +124,7 @@ namespace xsd xml::auto_initializer init ((f & flags::dont_initialize) == 0); xml::sax::bits::error_handler_proxy eh_proxy (eh); - std::auto_ptr sax (create_sax_ (f, p)); + XSD_AUTO_PTR sax (create_sax_ (f, p)); parse (uri, eh_proxy, *sax, f, p); @@ -153,7 +153,7 @@ namespace xsd const properties& p) { xml::sax::bits::error_handler_proxy eh_proxy (eh); - std::auto_ptr sax (create_sax_ (f, p)); + XSD_AUTO_PTR sax (create_sax_ (f, p)); parse (uri, eh_proxy, *sax, f, p); @@ -390,7 +390,7 @@ namespace xsd { error_handler eh; xml::sax::bits::error_handler_proxy eh_proxy (eh); - std::auto_ptr sax (create_sax_ (f, p)); + XSD_AUTO_PTR sax (create_sax_ (f, p)); parse (is, eh_proxy, *sax, f, p); @@ -405,7 +405,7 @@ namespace xsd const properties& p) { xml::sax::bits::error_handler_proxy eh_proxy (eh); - std::auto_ptr sax (create_sax_ (f, p)); + XSD_AUTO_PTR sax (create_sax_ (f, p)); parse (is, eh_proxy, *sax, f, p); @@ -421,7 +421,7 @@ namespace xsd const properties& p) { xml::sax::bits::error_handler_proxy eh_proxy (eh); - std::auto_ptr sax (create_sax_ (f, p)); + XSD_AUTO_PTR sax (create_sax_ (f, p)); parse (is, eh_proxy, *sax, f, p); @@ -569,12 +569,12 @@ namespace xsd template - std::auto_ptr document:: + XSD_AUTO_PTR document:: create_sax_ (flags f, const properties& p) { using namespace xercesc; - std::auto_ptr sax ( + XSD_AUTO_PTR sax ( XMLReaderFactory::createXMLReader ()); sax->setFeature (XMLUni::fgSAX2CoreNameSpaces, true); -- cgit v1.1