1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 00:42:45 +01:00

Codechange: use std::string_view for squirrel compilation

This commit is contained in:
Rubidium
2025-05-03 13:05:34 +02:00
committed by rubidium42
parent 26a4da9b01
commit 3020e615a9
10 changed files with 16 additions and 16 deletions

View File

@@ -179,7 +179,7 @@ size_t Squirrel::GetAllocatedMemory() const noexcept
}
void Squirrel::CompileError(HSQUIRRELVM vm, const SQChar *desc, const SQChar *source, SQInteger line, SQInteger column)
void Squirrel::CompileError(HSQUIRRELVM vm, std::string_view desc, std::string_view source, SQInteger line, SQInteger column)
{
std::string msg = fmt::format("Error {}:{}/{}: {}", source, line, column, desc);