summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorDave Partyka <dave.partyka@kitware.com>2009-07-26 05:01:05 (GMT)
committerDave Partyka <dave.partyka@kitware.com>2009-07-26 05:01:05 (GMT)
commit1d158cffca0b3331e3e0933955445815e00f1e2c (patch)
tree4ff98b393035b5565b4dde64577a945a27d0bbe3 /Source/kwsys/SystemTools.cxx
parentde83a83b8cdfecf6910815189565128f545a9d60 (diff)
downloadCMake-1d158cffca0b3331e3e0933955445815e00f1e2c.zip
CMake-1d158cffca0b3331e3e0933955445815e00f1e2c.tar.gz
CMake-1d158cffca0b3331e3e0933955445815e00f1e2c.tar.bz2
ENH: try and see if using string.append instead of += will make valgrind not complaing that JoinPath is leaking.
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 5f1bbda..fd0a19b 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -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.