From a05e99e26eb0b37f7892829dd773083f31bda816 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Wed, 21 Dec 2011 19:33:51 +0000 Subject: [PATCH] Fix use of temp object in tokenizer --- xmltooling/util/ParserPool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.1.4