浏览代码

ERR: portability.

Bill Lorensen 22 年之前
父节点
当前提交
78ecb7f33f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)