util/AllocatedString: fix operator= parameter type

This commit is contained in:
Max Kellermann 2021-01-21 20:44:07 +01:00
parent 84084baa65
commit 9b2eb74f95
1 changed files with 1 additions and 1 deletions

View File

@ -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;