diff options
author | Linus Groh <mail@linusgroh.de> | 2023-02-25 16:40:37 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-25 20:51:49 +0100 |
commit | 09d40bfbb24588b5659f17e2701b5c367a447110 (patch) | |
tree | 8a5612e3251e504ab41d0ff5c7a1a7f70c2593b0 /Userland/Libraries/LibGLSL | |
parent | 85414d9338f5b4a25f46f519c07af161c48af45d (diff) | |
download | serenity-09d40bfbb24588b5659f17e2701b5c367a447110.zip |
Everywhere: Use _{short_,}string to create Strings from literals
Diffstat (limited to 'Userland/Libraries/LibGLSL')
-rw-r--r-- | Userland/Libraries/LibGLSL/Linker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGLSL/Linker.cpp b/Userland/Libraries/LibGLSL/Linker.cpp index 50e7790a89..0d9fb3e66a 100644 --- a/Userland/Libraries/LibGLSL/Linker.cpp +++ b/Userland/Libraries/LibGLSL/Linker.cpp @@ -15,8 +15,8 @@ ErrorOr<NonnullOwnPtr<LinkedShader>> Linker::link(Vector<ObjectFile const*> cons GPU::IR::Shader shader; - auto input_name = TRY(String::from_utf8("input0"sv)); - auto output_name = TRY(String::from_utf8("output0"sv)); + auto input_name = TRY("input0"_string); + auto output_name = TRY("output0"_string); TRY(shader.inputs.try_append({ move(input_name), GPU::IR::StorageType::Vector4 })); TRY(shader.outputs.try_append({ move(output_name), GPU::IR::StorageType::Vector4 })); GPU::IR::Instruction instruction { |