diff options
author | Max Kellermann <max@musicpd.org> | 2019-11-04 15:44:06 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-11-04 15:44:06 +0100 |
commit | ed327c597a51bd3b51daa736b7ba8759a42dd5f5 (patch) | |
tree | 3d67172b3e439e041cb82e06c1f0750cb52d3a4b /src/fs | |
parent | 496f43e25dee3522b6ffafd84418b0a58e98c088 (diff) |
lib/icu/Converter: Create() returns std::unique_ptr
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/Charset.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/Charset.cxx b/src/fs/Charset.cxx index 941021fa7..880a0101c 100644 --- a/src/fs/Charset.cxx +++ b/src/fs/Charset.cxx @@ -38,7 +38,7 @@ static std::string fs_charset; -static IcuConverter *fs_converter; +static std::unique_ptr<IcuConverter> fs_converter; void SetFSCharset(const char *charset) @@ -59,8 +59,7 @@ void DeinitFSCharset() noexcept { #ifdef HAVE_ICU_CONVERTER - delete fs_converter; - fs_converter = nullptr; + fs_converter.reset(); #endif } |