[ox/std] Cleanup
This commit is contained in:
parent
ff2f13c99f
commit
90ed515842
6
deps/ox/src/ox/std/string.hpp
vendored
6
deps/ox/src/ox/std/string.hpp
vendored
@ -104,10 +104,10 @@ class BasicString {
|
||||
BasicString substr(std::size_t pos) const noexcept;
|
||||
|
||||
[[nodiscard]]
|
||||
bool endsWith(const char *other) const noexcept;
|
||||
bool endsWith(const char *ending) const noexcept;
|
||||
|
||||
[[nodiscard]]
|
||||
bool endsWith(const BasicString &other) const noexcept;
|
||||
bool endsWith(const BasicString &ending) const noexcept;
|
||||
|
||||
[[nodiscard]]
|
||||
constexpr const char *data() const noexcept {
|
||||
@ -199,7 +199,7 @@ BasicString<SmallStringSize> &BasicString<SmallStringSize>::operator=(const char
|
||||
|
||||
template<std::size_t SmallStringSize>
|
||||
BasicString<SmallStringSize> &BasicString<SmallStringSize>::operator=(char *str) noexcept {
|
||||
return *this = static_cast<const char*>(str);
|
||||
return *this = const_cast<const char*>(str);
|
||||
}
|
||||
|
||||
template<std::size_t SmallStringSize>
|
||||
|
Loading…
Reference in New Issue
Block a user