util/StringView: remove unnecessary operator= overloads
These will be generated by the compiler automatically.
This commit is contained in:
parent
cdf92c6300
commit
988680de33
@ -64,18 +64,6 @@ struct StringView : ConstBuffer<char> {
|
||||
return (pointer_type)memchr(data, ch, size);
|
||||
}
|
||||
|
||||
StringView &operator=(std::nullptr_t) noexcept {
|
||||
data = nullptr;
|
||||
size = 0;
|
||||
return *this;
|
||||
}
|
||||
|
||||
StringView &operator=(pointer_type _data) noexcept {
|
||||
data = _data;
|
||||
size = _data != nullptr ? strlen(_data) : 0;
|
||||
return *this;
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
bool StartsWith(StringView needle) const noexcept {
|
||||
return size >= needle.size &&
|
||||
|
Loading…
Reference in New Issue
Block a user