diff --git a/src/lib/icu/Converter.cxx b/src/lib/icu/Converter.cxx index 47431866c..53d5669b5 100644 --- a/src/lib/icu/Converter.cxx +++ b/src/lib/icu/Converter.cxx @@ -38,7 +38,7 @@ #ifdef HAVE_ICU -IcuConverter::~IcuConverter() +IcuConverter::~IcuConverter() noexcept { ucnv_close(converter); } diff --git a/src/lib/icu/Converter.hxx b/src/lib/icu/Converter.hxx index e98bc1142..ad9fbbd3c 100644 --- a/src/lib/icu/Converter.hxx +++ b/src/lib/icu/Converter.hxx @@ -65,9 +65,9 @@ class IcuConverter { public: #ifdef HAVE_ICU - ~IcuConverter(); + ~IcuConverter() noexcept; #elif defined(HAVE_ICONV) - ~IcuConverter() { + ~IcuConverter() noexcept { iconv_close(to_utf8); iconv_close(from_utf8); }