mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
AK: Add new failable JsonArray::{append/set}
functions
Move all old usages to the more explicit `JsonArray:must_{append/set}`
This commit is contained in:
parent
3b00636288
commit
8134dccdc7
14 changed files with 28 additions and 25 deletions
|
@ -177,7 +177,7 @@ ErrorOr<void> KeyboardMapperWidget::save_to_file(StringView filename)
|
|||
sb.append_code_point(values[i]);
|
||||
|
||||
JsonValue val(sb.to_deprecated_string());
|
||||
items.append(move(val));
|
||||
items.must_append(move(val));
|
||||
}
|
||||
map_json.set(name, move(items));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue