diff --git a/src/util/AllocatedString.hxx b/src/util/AllocatedString.hxx index 5f38a65b1..27c047514 100644 --- a/src/util/AllocatedString.hxx +++ b/src/util/AllocatedString.hxx @@ -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;