diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-20 00:04:35 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-20 00:04:35 +0100 |
commit | fe5d0ce82702a04a49b225fd9bbe69148d80196a (patch) | |
tree | 217b43ba6554eb097e0a3f445c40b035fee4ec3b /src/lib/icu | |
parent | 2fed3b5e5b90608a9ad2318335052b4d30479610 (diff) | |
parent | 8376578921c344a584b604657cc7275be804551d (diff) |
Merge branch 'v0.20.x'
Diffstat (limited to 'src/lib/icu')
-rw-r--r-- | src/lib/icu/Compare.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/icu/Compare.hxx b/src/lib/icu/Compare.hxx index 9ee2e6848..d38026508 100644 --- a/src/lib/icu/Compare.hxx +++ b/src/lib/icu/Compare.hxx @@ -37,6 +37,18 @@ public: explicit IcuCompare(const char *needle) noexcept; + IcuCompare(const IcuCompare &src) noexcept + :needle(src + ? AllocatedString<>::Duplicate(src.needle.c_str()) + : nullptr) {} + + IcuCompare &operator=(const IcuCompare &src) noexcept { + needle = src + ? AllocatedString<>::Duplicate(src.needle.c_str()) + : nullptr; + return *this; + } + IcuCompare(IcuCompare &&) = default; IcuCompare &operator=(IcuCompare &&) = default; |