mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00: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:
parent
4791ec35bf
commit
2c03de60da
Notes:
github-actions[bot]
2025-02-21 00:28:59 +00:00
Author: https://github.com/trflynn89
Commit: 2c03de60da
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3631
Reviewed-by: https://github.com/awesomekling ✅
17 changed files with 67 additions and 86 deletions
|
@ -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@
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue