瀏覽代碼

compiler fix

Ken Martin 22 年之前
父節點
當前提交
7f34d64b0a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
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';