util/AllocatedString: fix operator= parameter type
This commit is contained in:
parent
84084baa65
commit
9b2eb74f95
|
@ -102,7 +102,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
BasicAllocatedString &operator=(const char *src) noexcept {
|
||||
BasicAllocatedString &operator=(const_pointer src) noexcept {
|
||||
delete[] std::exchange(value, nullptr);
|
||||
value = src != nullptr ? Duplicate(src) : nullptr;
|
||||
return *this;
|
||||
|
|
Loading…
Reference in New Issue