mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 02:42:42 +01:00
Codechange: Add a std::string overload for StrMakeValidInPlace() and a moving std::string&& overload for StrMakeValid(). (#13962)
This commit is contained in:
@@ -1028,7 +1028,7 @@ static void SlStdString(void *ptr, VarType conv)
|
||||
if ((conv & SLF_ALLOW_NEWLINE) != 0) {
|
||||
settings = settings | SVS_ALLOW_NEWLINE;
|
||||
}
|
||||
*str = StrMakeValid(*str, settings);
|
||||
StrMakeValidInPlace(*str, settings);
|
||||
}
|
||||
|
||||
case SLA_PTRS: break;
|
||||
|
||||
Reference in New Issue
Block a user