1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibKeyboard: Use ErrorOr<T> for CharacterMap::fetch_system_map()

This commit is contained in:
Andreas Kling 2021-11-07 11:25:25 +01:00
parent e76b21a66f
commit c6cc0a88a1
2 changed files with 5 additions and 7 deletions

View file

@ -7,8 +7,7 @@
#pragma once
#ifndef KERNEL
# include <AK/OSError.h>
# include <AK/Result.h>
# include <AK/Error.h>
#endif
#include <AK/String.h>
#include <Kernel/API/KeyCode.h>
@ -24,7 +23,7 @@ public:
#ifndef KERNEL
int set_system_map();
static Result<CharacterMap, OSError> fetch_system_map();
static ErrorOr<CharacterMap> fetch_system_map();
#endif
u32 get_char(KeyEvent) const;