diff options
author | Linus Groh <mail@linusgroh.de> | 2023-02-28 13:50:29 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-28 15:15:36 +0000 |
commit | 51c3967516cdce42d40c26debaec7f6ef949420b (patch) | |
tree | 60292c772c23b3d1c2cdece4ac6cdd28f2152c6c /Meta | |
parent | d0ba5f2ed7d2fa397328638457083876338b34e3 (diff) | |
download | serenity-51c3967516cdce42d40c26debaec7f6ef949420b.zip |
Everywhere: Use '_{short_,}string' literals more
This mostly updates code what was written before but merged after these
were added.
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp index 60c551c7c6..e08646b48e 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/BindingsGenerator/IDLGenerators.cpp @@ -2448,11 +2448,11 @@ inline ErrorOr<String> idl_enum_to_string(@enum.type.name@ value) { enum_generator.set("enum.entry", entry.value); enum_generator.set("enum.string", entry.key); enum_generator.append(R"~~~( - case @enum.type.name@::@enum.entry@: return String::from_utf8("@enum.string@"sv); + case @enum.type.name@::@enum.entry@: return "@enum.string@"_string; )~~~"); } enum_generator.append(R"~~~( - default: return String::from_utf8("<unknown>"sv); + default: return "<unknown>"_string; }; } )~~~"); |