From: vsr Date: Wed, 16 Dec 2020 17:07:02 +0000 (+0300) Subject: #18963 Change throw() -> noexcept X-Git-Tag: V9_7_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abc91382bf34e7effce6b6392a4a816cf3b97e29;p=modules%2Fjobmanager.git #18963 Change throw() -> noexcept --- diff --git a/src/bases/BL_Exception.cxx b/src/bases/BL_Exception.cxx index 5f867e9..6d659dd 100644 --- a/src/bases/BL_Exception.cxx +++ b/src/bases/BL_Exception.cxx @@ -23,12 +23,12 @@ BL::Exception::Exception(const std::string& what):_what(what) { } -BL::Exception::~Exception() throw () +BL::Exception::~Exception() noexcept { } const char * -BL::Exception::what( void ) const throw () +BL::Exception::what( void ) const noexcept { return _what.c_str(); } diff --git a/src/bases/BL_Exception.hxx b/src/bases/BL_Exception.hxx index c93414e..688cfcb 100644 --- a/src/bases/BL_Exception.hxx +++ b/src/bases/BL_Exception.hxx @@ -40,8 +40,8 @@ namespace BL 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; }; }