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/shared/world/dimension.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/shared/world/dimension.hh') diff --git a/game/shared/world/dimension.hh b/game/shared/world/dimension.hh index 5b06895..3a383ac 100644 --- a/game/shared/world/dimension.hh +++ b/game/shared/world/dimension.hh @@ -26,10 +26,10 @@ namespace world { class Dimension { public: - explicit Dimension(const char* name, float gravity); + explicit Dimension(std::string_view name, float gravity); virtual ~Dimension(void); - const char* get_name(void) const; + std::string_view get_name(void) const; float get_gravity(void) const; public: -- cgit