summaryrefslogtreecommitdiff
path: root/src/decoder/plugins/SidplayDecoderPlugin.cxx
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 /src/decoder/plugins/SidplayDecoderPlugin.cxx
parent496f43e25dee3522b6ffafd84418b0a58e98c088 (diff)
lib/icu/Converter: Create() returns std::unique_ptr
Diffstat (limited to 'src/decoder/plugins/SidplayDecoderPlugin.cxx')
-rw-r--r--src/decoder/plugins/SidplayDecoderPlugin.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/decoder/plugins/SidplayDecoderPlugin.cxx b/src/decoder/plugins/SidplayDecoderPlugin.cxx
index ca527ee6a..625962f86 100644
--- a/src/decoder/plugins/SidplayDecoderPlugin.cxx
+++ b/src/decoder/plugins/SidplayDecoderPlugin.cxx
@@ -456,10 +456,7 @@ Windows1252ToUTF8(const char *s) noexcept
{
#ifdef HAVE_ICU_CONVERTER
try {
- std::unique_ptr<IcuConverter>
- converter(IcuConverter::Create("windows-1252"));
-
- return converter->ToUTF8(s);
+ return IcuConverter::Create("windows-1252")->ToUTF8(s);
} catch (...) { }
#endif