mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibGUI: Convert JsonArrayModel
to use Core::File
While we're here lets also convert all the `{set/store/add/remove}` functions to use `ErrorOr`
This commit is contained in:
parent
da305017de
commit
8df04f37e4
2 changed files with 68 additions and 56 deletions
|
@ -57,10 +57,10 @@ public:
|
|||
DeprecatedString const& json_path() const { return m_json_path; }
|
||||
void set_json_path(DeprecatedString const& json_path);
|
||||
|
||||
bool add(Vector<JsonValue> const&& fields);
|
||||
bool set(int row, Vector<JsonValue>&& fields);
|
||||
bool remove(int row);
|
||||
bool store();
|
||||
ErrorOr<void> add(Vector<JsonValue> const&& fields);
|
||||
ErrorOr<void> set(int row, Vector<JsonValue>&& fields);
|
||||
ErrorOr<void> remove(int row);
|
||||
ErrorOr<void> store();
|
||||
|
||||
private:
|
||||
JsonArrayModel(DeprecatedString const& json_path, Vector<FieldSpec>&& fields)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue