Everywhere: Convert known short-strings to the infallible String factory

For now, this is limited to strings that are 3 bytes or less. We can use
7 bytes on 64-bit platforms, but we do not yet assume 64-bit for Lagom
hosts (e.g. wasm).
This commit is contained in:
Timothy Flynn 2023-01-20 07:45:02 -05:00 committed by Tim Flynn
commit f1de4f8872
Notes: sideshowbarker 2024-07-17 04:21:32 +09:00
7 changed files with 7 additions and 7 deletions

View file

@ -24,7 +24,7 @@ ErrorOr<void> Shader::add_source(StringView source_code)
ErrorOr<void> Shader::compile()
{
m_info_log = TRY(String::from_utf8(""sv));
m_info_log = String {};
GLSL::Compiler compiler;