From: Scott Cantor Date: Tue, 13 Feb 2007 16:30:30 +0000 (+0000) Subject: No ASCII version of endsWith. X-Git-Tag: 1.0-alpha1~93 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=bea1c1bcb9577e885928bced3fa5305b1c36c406 No ASCII version of endsWith. --- diff --git a/xmltooling/util/ParserPool.cpp b/xmltooling/util/ParserPool.cpp index 06bf8ab..a06e07f 100644 --- a/xmltooling/util/ParserPool.cpp +++ b/xmltooling/util/ParserPool.cpp @@ -247,10 +247,9 @@ DOMInputSource* ParserPool::resolveEntity(const XMLCh* const publicId, const XML // Check for entity as a value in the map. for (i=m_schemaLocMap.begin(); i!=m_schemaLocMap.end(); ++i) { - if (XMLString::endsWith(i->second.c_str(), temp.get())) { - auto_ptr_XMLCh temp2(i->second.c_str()); + auto_ptr_XMLCh temp2(i->second.c_str()); + if (XMLString::endsWith(temp2.get(), systemId)) return new Wrapper4InputSource(new LocalFileInputSource(baseURI,temp2.get())); - } } // We'll allow anything without embedded slashes.