Commit f3fd2eb6 authored by Max Kellermann's avatar Max Kellermann

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

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