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

View File

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