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