Skip to content

Commit

Permalink
[core//MessageException] : Replace deprecated 'throw' by 'noexcept'.
Browse files Browse the repository at this point in the history
  • Loading branch information
msieben committed Jun 5, 2024
1 parent 6ec09cd commit 04f3f78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/core/MessageException.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
}
POP_WARNING()

MessageException::~MessageException() throw()
MessageException::~MessageException() noexcept(true)
{
}

const TCHAR* MessageException::Message() const throw()
const TCHAR* MessageException::Message() const noexcept(true)
{
return m_Message.c_str();
}
Expand Down
4 changes: 2 additions & 2 deletions Source/core/MessageException.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ namespace Core {
MessageException();

public:
MessageException(const string& message, bool inclSysMsg = false) throw();
MessageException(const string& message, bool inclSysMsg = false) noexcept(true);
~MessageException() throw();

const TCHAR* Message() const throw();
const TCHAR* Message() const noexcept(true);

private:
string m_Message; // Exception message
Expand Down

0 comments on commit 04f3f78

Please sign in to comment.