From 56f958a09dc546b6fd6a87a5dfceff36df95969e Mon Sep 17 00:00:00 2001 From: Bill Lorensen <lorensen@crd.ge.com> Date: Tue, 24 Jun 2003 21:37:02 -0400 Subject: [PATCH] ERR: portability. --- SystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SystemTools.cxx b/SystemTools.cxx index b9ca934c..936b8ffc 100644 --- a/SystemTools.cxx +++ b/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) -- GitLab