From e654b2931c862cc7c90dcc281dda33f905e72f29 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 9 Apr 2022 13:13:42 -0700 Subject: [PATCH] clang-tidy: replace throw() with noexcept Signed-off-by: Rosen Penev --- src/image_int.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image_int.hpp b/src/image_int.hpp index bf74c490..1a2fd759 100644 --- a/src/image_int.hpp +++ b/src/image_int.hpp @@ -62,7 +62,7 @@ std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper& bi template struct binaryToStringHelper { - explicit binaryToStringHelper(const Slice myBuf) throw() : buf_(myBuf) { + explicit binaryToStringHelper(const Slice myBuf) noexcept : buf_(myBuf) { } friend std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper& binToStr); @@ -95,7 +95,7 @@ struct binaryToStringHelper { * the stream throws neither. */ template -inline binaryToStringHelper binaryToString(const Slice sl) throw() { +inline binaryToStringHelper binaryToString(const Slice sl) noexcept { return binaryToStringHelper(sl); }