projects
/
shibboleth
/
xmltooling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix use of temp object in tokenizer
[shibboleth/xmltooling.git]
/
xmltooling
/
util
/
ParserPool.cpp
diff --git
a/xmltooling/util/ParserPool.cpp
b/xmltooling/util/ParserPool.cpp
index
a195dd7
..
ca155ca
100644
(file)
--- 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)
{
bool ParserPool::loadCatalogs(const char* pathnames)
{
- boost::tokenizer< char_separator<char> > catpaths(string(pathnames), char_separator<char>(PATH_SEPARATOR_STR));
+ string temp(pathnames);
+ boost::tokenizer< char_separator<char> > catpaths(temp, char_separator<char>(PATH_SEPARATOR_STR));
for_each(
catpaths.begin(), catpaths.end(),
// Call loadCatalog with an inner call to s->c_str() on each entry.
for_each(
catpaths.begin(), catpaths.end(),
// Call loadCatalog with an inner call to s->c_str() on each entry.