mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
LibKeyboard: Replace uses of JsonObject::get_deprecated()/get_ptr()
This commit is contained in:
parent
2fce19a451
commit
6ee68d6e45
|
@ -63,7 +63,7 @@ Vector<u32> CharacterMapFile::read_map(JsonObject const& json, DeprecatedString
|
|||
Vector<u32> buffer;
|
||||
buffer.resize(CHAR_MAP_SIZE);
|
||||
|
||||
auto map_arr = json.get_deprecated(name).as_array();
|
||||
auto map_arr = json.get_array(name).value();
|
||||
for (size_t i = 0; i < map_arr.size(); i++) {
|
||||
auto key_value = map_arr.at(i).as_string();
|
||||
if (key_value.length() == 0) {
|
||||
|
|
Loading…
Reference in a new issue