diff options
| author | untodesu <kirill@untode.su> | 2025-09-11 13:48:31 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-11 13:48:31 +0500 |
| commit | aaed751bf4430bf4b9b30cef532b8753b9f639ce (patch) | |
| tree | 16bc751c272ba27ad53ec48dbdd3a6d9e6a8d4c2 /game/client/config/gamepad_button.hh | |
| parent | 96bd73ae020ecca1f94698744c77498a89ad19f7 (diff) | |
| download | voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.tar.bz2 voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.zip | |
Replace most of C strings with string_view
Diffstat (limited to 'game/client/config/gamepad_button.hh')
| -rw-r--r-- | game/client/config/gamepad_button.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/client/config/gamepad_button.hh b/game/client/config/gamepad_button.hh index 11566c1..e1d1224 100644 --- a/game/client/config/gamepad_button.hh +++ b/game/client/config/gamepad_button.hh @@ -14,8 +14,8 @@ public: explicit GamepadButton(int button); virtual ~GamepadButton(void) = default; - virtual const char* get(void) const override; - virtual void set(const char* value) override; + virtual std::string_view get(void) const override; + virtual void set(std::string_view value) override; int get_button(void) const; void set_button(int button); @@ -25,7 +25,7 @@ public: private: int m_gamepad_button; - const char* m_name; + std::string_view m_name; }; } // namespace config |
