mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibKeyboard: Change some Optional<T> returns to ErrorOr<T>
Makes CharacterMapFile::load_from_file and CharacterMap::load_from_file return ErrorOr instead of Optional. This makes them a little nicer to use and a little easier to read, as they seem to have been approximating this.
This commit is contained in:
parent
017135b44e
commit
4e65c4dae4
5 changed files with 10 additions and 22 deletions
|
@ -19,7 +19,7 @@ class CharacterMap {
|
|||
|
||||
public:
|
||||
CharacterMap(const String& map_name, const CharacterMapData& map_data);
|
||||
static Optional<CharacterMap> load_from_file(const String& filename);
|
||||
static ErrorOr<CharacterMap> load_from_file(const String& filename);
|
||||
|
||||
#ifndef KERNEL
|
||||
int set_system_map();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue