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

@@ -64,7 +64,7 @@ static std::optional<std::string> TestScriptAdminMakeJSON(std::string_view squir
sq_pop(vm, 1);
/* Compile the snippet. */
REQUIRE(sq_compilebuffer(vm, buffer.data(), buffer.size(), "test", SQTrue) == SQ_OK);
REQUIRE(sq_compilebuffer(vm, buffer, "test", SQTrue) == SQ_OK);
/* Execute the snippet, capturing the return value. */
sq_pushroottable(vm);
REQUIRE(sq_call(vm, 1, SQTrue, SQTrue) == SQ_OK);