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 /core/config/string.cc | |
| parent | 96bd73ae020ecca1f94698744c77498a89ad19f7 (diff) | |
| download | voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.tar.bz2 voxelius-aaed751bf4430bf4b9b30cef532b8753b9f639ce.zip | |
Replace most of C strings with string_view
Diffstat (limited to 'core/config/string.cc')
| -rw-r--r-- | core/config/string.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/config/string.cc b/core/config/string.cc index 08e8c0d..198b448 100644 --- a/core/config/string.cc +++ b/core/config/string.cc @@ -2,17 +2,17 @@ #include "core/config/string.hh" -config::String::String(const char* default_value) +config::String::String(std::string_view default_value) { m_value = default_value; } -void config::String::set(const char* value) +void config::String::set(std::string_view value) { m_value = value; } -const char* config::String::get(void) const +std::string_view config::String::get(void) const { - return m_value.c_str(); + return m_value; } |
