Browse Source

compiler fix

Ken Martin 22 năm trước cách đây
mục cha
commit
7f34d64b0a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
   searchPos = searchPos - src + orig;
   
   
   // initialize the result
   // initialize the result
-  source.clear();
+  source.erase(source.begin(),source.end());
   do
   do
     {
     {
     *searchPos = '\0';
     *searchPos = '\0';