util/AllocatedString: add string_view constructor
Replaces the static Duplicate() method.
This commit is contained in:

committed by
Max Kellermann

parent
32b7b2e2fa
commit
6e1c8edf09
@@ -46,7 +46,7 @@ IcuCompare::IcuCompare(std::string_view _needle) noexcept
|
||||
#else
|
||||
|
||||
IcuCompare::IcuCompare(std::string_view _needle) noexcept
|
||||
:needle(AllocatedString::Duplicate(_needle)) {}
|
||||
:needle(_needle) {}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user