1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

LibGUI: Make CommonLocationsProvider::load_from_json() failable

... and additionally port it to Core::Stream. :^)
This commit is contained in:
Karol Kosek 2023-01-08 22:25:28 +01:00 committed by Jelle Raaijmakers
parent 493658423a
commit 41691a7fcb
2 changed files with 16 additions and 20 deletions

View file

@ -20,7 +20,7 @@ public:
DeprecatedString path;
};
static void load_from_json(DeprecatedString const& json_path);
static ErrorOr<void> load_from_json(StringView json_path);
static Vector<CommonLocation> const& common_locations();
};