diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:54:38 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:54:38 +0100 |
| commit | 64ebfde8bcd6408e3b6925624e8680c314db6efc (patch) | |
| tree | b969314f909f7f16ef5acc63f90dca317a40850a /lib/nes/common/containers/path-view.cc | |
| parent | d060e3a50c987d10799ccc739bdbf9d7d7a13c10 (diff) | |
get rid of nasty stdlib
Diffstat (limited to 'lib/nes/common/containers/path-view.cc')
| -rw-r--r-- | lib/nes/common/containers/path-view.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/nes/common/containers/path-view.cc b/lib/nes/common/containers/path-view.cc index c81668b..33d82a8 100644 --- a/lib/nes/common/containers/path-view.cc +++ b/lib/nes/common/containers/path-view.cc @@ -3,10 +3,10 @@ namespace nes { - auto path_view::iterator::operator*() const -> std::string_view + auto path_view::iterator::operator*() const -> string_view { NES_ASSERT(current_ != nullptr && component_length_ > 0 && "invalid iterator"); - return std::string_view{ current_, component_length_ }; + return string_view{ current_, component_length_ }; } auto path_view::iterator::operator++() -> iterator& @@ -41,11 +41,11 @@ namespace nes auto path_view::begin() const -> iterator { - return ++iterator{ path_.data(), 0, static_cast<u32>(path_.size()) }; + return ++iterator{ path_.get_data(), 0, path_.get_length() }; } auto path_view::end() const -> iterator { - return iterator{ path_.data() + path_.size(), 0, 0 }; + return iterator{ path_.get_data() + path_.get_length(), 0, 0 }; } } // namespace nes
\ No newline at end of file |
