mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
find_replace fix for real
This commit is contained in:
parent
20c99e36d8
commit
d2b9d4ab20
@ -408,7 +408,7 @@ bool isAlphaNumeric(const char *text)
|
||||
return true;
|
||||
}
|
||||
|
||||
void find_replace(std::string& string_subject, std::string& search_string, std::string& replace_string) {
|
||||
void find_replace(std::string& string_subject, const std::string& search_string, const std::string& replace_string) {
|
||||
auto index = string_subject.find_first_of(search_string);
|
||||
while (index != std::string::npos) {
|
||||
string_subject.replace(index, index + 1, replace_string);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user