ENH: try and see if using string.append instead of += will make valgrind not complaing that JoinPath is leaking.
This commit is contained in:
parent
de83a83b8c
commit
1d158cffca
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue