From 6ee68d6e454a96d939c02c38977ab36d50845454 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 21 Dec 2022 17:27:50 +0000 Subject: [PATCH] LibKeyboard: Replace uses of JsonObject::get_deprecated()/get_ptr() --- Userland/Libraries/LibKeyboard/CharacterMapFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp b/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp index 24b4075cba..7b3cae7821 100644 --- a/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp +++ b/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp @@ -63,7 +63,7 @@ Vector CharacterMapFile::read_map(JsonObject const& json, DeprecatedString Vector 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) {