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

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