ENH: try and see if using string.append instead of += will make valgrind not complaing that JoinPath is leaking.

This commit is contained in:
Dave Partyka 2009-07-26 01:01:05 -04:00
parent de83a83b8c
commit 1d158cffca
1 changed files with 4 additions and 4 deletions

View File

@ -3325,18 +3325,18 @@ SystemTools
// The first two components do not add a slash.
if(first != last)
{
result += *first++;
result.append(*first++);
}
if(first != last)
{
result += *first++;
result.append(*first++);
}
// All remaining components are always separated with a slash.
while(first != last)
{
result += "/";
result += *first++;
result.append("/");
result.append(*first++);
}
// Return the concatenated result.