From: Scott Cantor Date: Wed, 12 Sep 2012 18:51:22 +0000 (+0000) Subject: Remove extra path resolver call in catalog load. X-Git-Tag: 1.5.2~23 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=be75127874e145c5703c0457e9b7a0d583d6c013;ds=sidebyside Remove extra path resolver call in catalog load. --- diff --git a/xmltooling/util/ParserPool.cpp b/xmltooling/util/ParserPool.cpp index 1176617..78d64cc 100644 --- a/xmltooling/util/ParserPool.cpp +++ b/xmltooling/util/ParserPool.cpp @@ -247,10 +247,8 @@ bool ParserPool::loadCatalogs(const char* pathnames) string temp(pathnames); vector catpaths; split(catpaths, temp, is_any_of(PATH_SEPARATOR_STR), algorithm::token_compress_on); - for (vector::iterator i = catpaths.begin(); i != catpaths.end(); ++i) { - XMLToolingConfig::getConfig().getPathResolver()->resolve(*i, PathResolver::XMLTOOLING_XML_FILE); - loadCatalog(i->c_str()); - } + static bool (ParserPool::* lc)(const char*) = &ParserPool::loadCatalog; + for_each(catpaths.begin(), catpaths.end(), boost::bind(lc, this, boost::bind(&string::c_str, _1))); return !catpaths.empty(); }