From: vsr Date: Wed, 16 Dec 2020 17:06:01 +0000 (+0300) Subject: #18963 Change throw() -> noexcept X-Git-Tag: V9_7_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=df0d173c140641428bc9783016c036dfad3c8154;p=modules%2Fhexablock.git #18963 Change throw() -> noexcept --- 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; }; } }