From 8316c9e8d5ade10ac5771336d4471ff26b434024 Mon Sep 17 00:00:00 2001 From: Jonny Paton Date: Mon, 6 Jan 2025 13:38:35 +0000 Subject: [PATCH] Make keyboard key/scancode count variables inline --- include/SFML/Window/Keyboard.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SFML/Window/Keyboard.hpp b/include/SFML/Window/Keyboard.hpp index 9077ce1c6..df07844d8 100644 --- a/include/SFML/Window/Keyboard.hpp +++ b/include/SFML/Window/Keyboard.hpp @@ -159,7 +159,7 @@ enum class Key /// //////////////////////////////////////////////////////////// // NOLINTNEXTLINE(readability-identifier-naming) -static constexpr unsigned int KeyCount{static_cast(Key::Pause) + 1}; +inline constexpr unsigned int KeyCount{static_cast(Key::Pause) + 1}; //////////////////////////////////////////////////////////// /// \brief Scancodes @@ -333,7 +333,7 @@ using Scancode = Scan; /// //////////////////////////////////////////////////////////// // NOLINTNEXTLINE(readability-identifier-naming) -static constexpr unsigned int ScancodeCount{static_cast(Scan::LaunchMediaSelect) + 1}; +inline constexpr unsigned int ScancodeCount{static_cast(Scan::LaunchMediaSelect) + 1}; //////////////////////////////////////////////////////////// /// \brief Check if a key is pressed