Fix strreplace, fixes snapshot and dtd issue (nw)

This commit is contained in:
Miodrag Milanovic 2015-04-23 07:13:08 +02:00
parent 025d01c801
commit ee0328ba37
2 changed files with 2 additions and 2 deletions

View File

@ -300,7 +300,7 @@ std::string strmakelower(std::string& str)
return str;
}
int strreplace(std::string str, const std::string& search, const std::string& replace)
int strreplace(std::string &str, const std::string& search, const std::string& replace)
{
int searchlen = search.length();
int replacelen = replace.length();

View File

@ -75,6 +75,6 @@ void strreplacechr(std::string& str, char ch, char newch);
std::string strtrimspace(std::string& str);
std::string strmakeupper(std::string& str);
std::string strmakelower(std::string& str);
int strreplace(std::string str, const std::string& search, const std::string& replace);
int strreplace(std::string &str, const std::string& search, const std::string& replace);
#endif /* __CORESTR_H__ */