summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-24 20:35:59 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-24 20:35:59 (GMT)
commit7f34d64b0ab321e03e56269476e7fd962836e2b3 (patch)
treed7c434063a05001735afed6cb5add754a9bb783c /Source
parent840389b64f54b1b239df4b17c329e1e79dfddd42 (diff)
downloadCMake-7f34d64b0ab321e03e56269476e7fd962836e2b3.zip
CMake-7f34d64b0ab321e03e56269476e7fd962836e2b3.tar.gz
CMake-7f34d64b0ab321e03e56269476e7fd962836e2b3.tar.bz2
compiler fix
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 0b887fc..6b1327c 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -268,7 +268,7 @@ void SystemTools::ReplaceString(kwsys_std::string& source,
searchPos = searchPos - src + orig;
// initialize the result
- source.clear();
+ source.erase(source.begin(),source.end());
do
{
*searchPos = '\0';