From df0d173c140641428bc9783016c036dfad3c8154 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 16 Dec 2020 20:06:01 +0300 Subject: [PATCH] #18963 Change throw() -> noexcept --- src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.cxx | 4 ++-- src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.cxx index 332dad6..acc6aec 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.cxx @@ -48,11 +48,11 @@ Exception::Exception(const std::string& what):_what(what) #endif } -const char *Exception::what( void ) const throw () +const char *Exception::what( void ) const noexcept { return _what.c_str(); } -Exception::~Exception() throw () +Exception::~Exception() noexcept { } diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.hxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.hxx index 70e40d8..d309247 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.hxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_Exception.hxx @@ -35,8 +35,8 @@ namespace HEXABLOCK std::string _what; public: Exception(const std::string& what); - const char *what( void ) const throw (); - virtual ~Exception() throw (); + const char *what( void ) const noexcept; + virtual ~Exception() noexcept; }; } } -- 2.39.2