summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-11-04 15:44:06 +0100
committerMax Kellermann <max@musicpd.org>2019-11-04 15:44:06 +0100
commited327c597a51bd3b51daa736b7ba8759a42dd5f5 (patch)
tree3d67172b3e439e041cb82e06c1f0750cb52d3a4b /test
parent496f43e25dee3522b6ffafd84418b0a58e98c088 (diff)
lib/icu/Converter: Create() returns std::unique_ptr
Diffstat (limited to 'test')
-rw-r--r--test/TestIcu.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/TestIcu.cxx b/test/TestIcu.cxx
index d5345556d..adda08ac5 100644
--- a/test/TestIcu.cxx
+++ b/test/TestIcu.cxx
@@ -30,8 +30,7 @@ TEST(IcuConverter, InvalidCharset)
TEST(IcuConverter, Latin1)
{
- IcuConverter *const converter =
- IcuConverter::Create("iso-8859-1");
+ const auto converter = IcuConverter::Create("iso-8859-1");
ASSERT_NE(converter, nullptr);
for (const auto i : invalid_utf8) {
@@ -45,8 +44,6 @@ TEST(IcuConverter, Latin1)
auto t = converter->ToUTF8(i.other);
EXPECT_STREQ(t.c_str(), i.utf8);
}
-
- delete converter;
}
#endif