Skip to content
Snippets Groups Projects
Commit b6fec6f1 authored by brad kittenbrink's avatar brad kittenbrink
Browse files

Fix for crash when running windows debug build. std::string::replace cannot...

Fix for crash when running windows debug build.  std::string::replace cannot take NULL for it's argument.
parent 9bc9a696
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,7 @@ bool removeSubString(std::string& str, const std::string& substr) ...@@ -104,7 +104,7 @@ bool removeSubString(std::string& str, const std::string& substr)
size_t pos = str.find(substr); size_t pos = str.find(substr);
if (pos != string::npos) if (pos != string::npos)
{ {
str.replace(pos,substr.length(),(const char *)NULL, 0); str.replace(pos,substr.length(), "", 0);
return true; return true;
} }
return false; return false;
......
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