mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
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:
parent
d48266a420
commit
f1de4f8872
Notes:
sideshowbarker
2024-07-17 04:21:32 +09:00
Author: https://github.com/trflynn89
Commit: f1de4f8872
Pull-request: https://github.com/SerenityOS/serenity/pull/17102
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/linusg ✅
7 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue