Explorar o código

ERR: portability.

Bill Lorensen %!s(int64=22) %!d(string=hai) anos
pai
achega
78ecb7f33f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
Source/kwsys/SystemTools.cxx

@@ -253,7 +253,7 @@ void SystemTools::ReplaceString(kwsys_std::string& source,
                                    const char* with)
 {
   const char *src = source.c_str();
-  char *searchPos = strstr(src,replace);
+  char *searchPos = const_cast<char *>(strstr(src,replace));
   
   // get out quick if string is not found
   if (!searchPos)