lib/icu/Converter: add noexcept

This commit is contained in:
Max Kellermann 2022-11-15 00:28:29 +01:00
parent 0b22cc962d
commit 1a6ec716ef
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@
#ifdef HAVE_ICU #ifdef HAVE_ICU
IcuConverter::~IcuConverter() IcuConverter::~IcuConverter() noexcept
{ {
ucnv_close(converter); ucnv_close(converter);
} }

View File

@ -65,9 +65,9 @@ class IcuConverter {
public: public:
#ifdef HAVE_ICU #ifdef HAVE_ICU
~IcuConverter(); ~IcuConverter() noexcept;
#elif defined(HAVE_ICONV) #elif defined(HAVE_ICONV)
~IcuConverter() { ~IcuConverter() noexcept {
iconv_close(to_utf8); iconv_close(to_utf8);
iconv_close(from_utf8); iconv_close(from_utf8);
} }