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.
|
// 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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user