From aaed751bf4430bf4b9b30cef532b8753b9f639ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 13:48:31 +0500 Subject: Replace most of C strings with string_view --- game/client/config/keybind.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'game/client/config/keybind.hh') diff --git a/game/client/config/keybind.hh b/game/client/config/keybind.hh index abfb97a..0005fe4 100644 --- a/game/client/config/keybind.hh +++ b/game/client/config/keybind.hh @@ -12,8 +12,8 @@ public: explicit KeyBind(int default_value); virtual ~KeyBind(void) = default; - virtual void set(const char* value) override; - virtual const char* get(void) const override; + virtual void set(std::string_view value) override; + virtual std::string_view get(void) const override; void set_key(int keycode); int get_key(void) const; @@ -21,7 +21,7 @@ public: bool equals(int keycode) const; private: - const char* m_name; + std::string_view m_name; int m_glfw_keycode; }; } // namespace config -- cgit