Commit f3fd2eb6 authored by Max Kellermann's avatar Max Kellermann

lib/icu/Compare: use AllocatedString::Clone()

parent fc92db83
......@@ -38,12 +38,12 @@ public:
IcuCompare(const IcuCompare &src) noexcept
:needle(src
? AllocatedString<>::Duplicate(src.needle.c_str())
? src.needle.Clone()
: nullptr) {}
IcuCompare &operator=(const IcuCompare &src) noexcept {
needle = src
? AllocatedString<>::Duplicate(src.needle.c_str())
? src.needle.Clone()
: 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