summaryrefslogtreecommitdiff
path: root/Kernel/Devices/KeyboardDevice.h
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-01-30 22:58:38 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-01 09:54:32 +0100
commit272df54a3e314bdf50009884516116fc814be9c3 (patch)
tree6235dab1b288403221ea5106d1d42c9cffd95cea /Kernel/Devices/KeyboardDevice.h
parent261727957945a510c8c41af99bc903bd8ca60e74 (diff)
downloadserenity-272df54a3e314bdf50009884516116fc814be9c3.zip
Kernel+LibKeyboard: Define the default keymap only in one place
Because it was 'static const' and also shared with userland programs, the default keymap was defined in multiple places. This commit should save several kilobytes! :^)
Diffstat (limited to 'Kernel/Devices/KeyboardDevice.h')
-rw-r--r--Kernel/Devices/KeyboardDevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/KeyboardDevice.h b/Kernel/Devices/KeyboardDevice.h
index 11e3b4d65e..1770d40a30 100644
--- a/Kernel/Devices/KeyboardDevice.h
+++ b/Kernel/Devices/KeyboardDevice.h
@@ -105,7 +105,7 @@ private:
bool m_has_e0_prefix { false };
EntropySource m_entropy_source;
- Keyboard::CharacterMap m_character_map = Keyboard::CharacterMap("en", Keyboard::default_character_map);
+ Keyboard::CharacterMap m_character_map;
};
class KeyboardClient {