Commit 9b2eb74f authored by Max Kellermann's avatar Max Kellermann

util/AllocatedString: fix operator= parameter type

parent 84084baa
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment