Skip to content
Snippets Groups Projects
Commit 56f958a0 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: portability.

parent dd3896bb
No related branches found
No related tags found
Loading
...@@ -253,7 +253,7 @@ void SystemTools::ReplaceString(kwsys_std::string& source, ...@@ -253,7 +253,7 @@ void SystemTools::ReplaceString(kwsys_std::string& source,
const char* with) const char* with)
{ {
const char *src = source.c_str(); 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 // get out quick if string is not found
if (!searchPos) if (!searchPos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment