From c3fb76a0e96f689db394f68c9c307244dbda1ee0 Mon Sep 17 00:00:00 2001 From: Dave Partyka <dave.partyka@kitware.com> 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. --- SystemTools.cxx | 8 ++++---- kwsysDateStamp.cmake | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index 21cd59f..9f1c8ff 100644 --- a/SystemTools.cxx +++ b/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. diff --git a/kwsysDateStamp.cmake b/kwsysDateStamp.cmake index d6f4c2a..0382f07 100644 --- a/kwsysDateStamp.cmake +++ b/kwsysDateStamp.cmake @@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2009) SET(KWSYS_DATE_STAMP_MONTH 07) # KWSys version date day component. Format is DD. -SET(KWSYS_DATE_STAMP_DAY 24) +SET(KWSYS_DATE_STAMP_DAY 26) -- GitLab