diff --git a/deps/ox/src/ox/std/stringview.hpp b/deps/ox/src/ox/std/stringview.hpp index eef1cc48..6a2221e0 100644 --- a/deps/ox/src/ox/std/stringview.hpp +++ b/deps/ox/src/ox/std/stringview.hpp @@ -60,7 +60,7 @@ class StringView: public detail::BaseStringView { }; -using StringViewCR = const StringView&; +using StringViewCR = StringView const&; constexpr auto operator==(StringViewCR s1, StringViewCR s2) noexcept { if (s2.len() != s1.len()) { @@ -89,7 +89,7 @@ constexpr auto operator<=>(StringViewCR s1, StringViewCR s2) noexcept { } } -constexpr auto write(Writer_c auto &writer, ox::StringViewCR sv) noexcept { +constexpr auto write(Writer_c auto &writer, StringViewCR sv) noexcept { return writer.write(sv.data(), sv.bytes()); } @@ -100,7 +100,7 @@ constexpr auto toStdStringView(StringViewCR sv) noexcept { #endif -constexpr ox::Result strToInt(ox::StringViewCR str) noexcept { +constexpr ox::Result strToInt(StringViewCR str) noexcept { OX_ALLOW_UNSAFE_BUFFERS_BEGIN int total = 0; int multiplier = 1;