From 6be00e059abcb7ccf026c9fca93ae147032ee2b0 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 10 Feb 2012 20:19:22 +0000 Subject: [PATCH] Fix legacy XMLString release call --- xmltooling/AbstractAttributeExtensibleXMLObject.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xmltooling/AbstractAttributeExtensibleXMLObject.cpp b/xmltooling/AbstractAttributeExtensibleXMLObject.cpp index 1f819f6..a89d8a1 100644 --- a/xmltooling/AbstractAttributeExtensibleXMLObject.cpp +++ b/xmltooling/AbstractAttributeExtensibleXMLObject.cpp @@ -112,13 +112,19 @@ AbstractAttributeExtensibleXMLObject::AbstractAttributeExtensibleXMLObject(const AbstractAttributeExtensibleXMLObject::~AbstractAttributeExtensibleXMLObject() { +#ifdef XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE + static void (*release)(XMLCh**) = &XMLString::release; +#else static void (*release)(XMLCh**,MemoryManager*) = &XMLString::release; +#endif for_each( m_attributeMap.begin(), m_attributeMap.end(), lambda::bind( release, - &lambda::bind(&map::value_type::second, boost::ref(_1)), - XMLPlatformUtils::fgMemoryManager + &lambda::bind(&map::value_type::second, boost::ref(_1)) +#ifndef XMLTOOLING_XERCESC_HAS_XMLBYTE_RELEASE + ,XMLPlatformUtils::fgMemoryManager +#endif ) ); } -- 2.1.4