From 1d158cffca0b3331e3e0933955445815e00f1e2c Mon Sep 17 00:00:00 2001 From: Dave Partyka Date: Sun, 26 Jul 2009 01:01:05 -0400 Subject: [PATCH] ENH: try and see if using string.append instead of += will make valgrind not complaing that JoinPath is leaking. --- Source/kwsys/SystemTools.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 5f1bbdae3..fd0a19bfc 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.