lib/icu/Compare: use AllocatedString::Clone()
This commit is contained in:
parent
fc92db83cf
commit
f3fd2eb618
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user