ERR: portability.

This commit is contained in:
Bill Lorensen 2003-06-24 21:37:02 -04:00
parent 7f34d64b0a
commit 78ecb7f33f
1 changed files with 1 additions and 1 deletions

View File

@ -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)