From: Scott Cantor Date: Wed, 21 Dec 2011 19:33:51 +0000 (+0000) Subject: Fix use of temp object in tokenizer X-Git-Tag: 1.5.0~48 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=a05e99e26eb0b37f7892829dd773083f31bda816 Fix use of temp object in tokenizer --- diff --git a/xmltooling/util/ParserPool.cpp b/xmltooling/util/ParserPool.cpp index a195dd7..ca155ca 100644 --- a/xmltooling/util/ParserPool.cpp +++ b/xmltooling/util/ParserPool.cpp @@ -239,7 +239,8 @@ bool ParserPool::loadSchema(const XMLCh* nsURI, const XMLCh* pathname) bool ParserPool::loadCatalogs(const char* pathnames) { - boost::tokenizer< char_separator > catpaths(string(pathnames), char_separator(PATH_SEPARATOR_STR)); + string temp(pathnames); + boost::tokenizer< char_separator > catpaths(temp, char_separator(PATH_SEPARATOR_STR)); for_each( catpaths.begin(), catpaths.end(), // Call loadCatalog with an inner call to s->c_str() on each entry.