mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
AK+Everywhere: Remove now-unecessary use of ByteString with JSON types
This removes JsonObject::get_byte_string and JsonObject::to_byte_string.
This commit is contained in:
Notes:
github-actions[bot]
2025-02-21 00:28:59 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2c03de60daa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631 Reviewed-by: https://github.com/awesomekling ✅
@@ -29,8 +29,8 @@ namespace Web::ARIA {
|
||||
JsonObject const& value_object = value.as_object();
|
||||
|
||||
auto class_definition_generator = generator.fork();
|
||||
class_definition_generator.set("spec_link"sv, value_object.get_byte_string("specLink"sv).value());
|
||||
class_definition_generator.set("description"sv, value_object.get_byte_string("description"sv).value());
|
||||
class_definition_generator.set("spec_link"sv, value_object.get_string("specLink"sv).release_value());
|
||||
class_definition_generator.set("description"sv, value_object.get_string("description"sv).release_value());
|
||||
class_definition_generator.set("name"sv, name);
|
||||
class_definition_generator.append(R"~~~(
|
||||
// @spec_link@
|
||||
|
||||
Reference in New Issue
Block a user