Codechange: Redundant use of char * and c_str(). (#11454)

This commit is contained in:
Peter Nelson
2023-11-10 00:17:36 +00:00
committed by GitHub
parent 938c8339d2
commit 1071acb483
6 changed files with 11 additions and 11 deletions

View File

@@ -46,7 +46,7 @@ ScriptStorage::~ScriptStorage()
static void PrintFunc(bool error_msg, const std::string &message)
{
/* Convert to OpenTTD internal capable string */
ScriptController::Print(error_msg, message.c_str());
ScriptController::Print(error_msg, message);
}
ScriptInstance::ScriptInstance(const char *APIName) :