From 1a6ec716efbf68d15cf6749923212750784e7824 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Nov 2022 00:28:29 +0100 Subject: [PATCH] lib/icu/Converter: add `noexcept` --- src/lib/icu/Converter.cxx | 2 +- src/lib/icu/Converter.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }