mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Add noexcept specifier to XChunkException and WritingException
This commit is contained in:
parent
0bd4160956
commit
1c35f43c25
@ -5,7 +5,7 @@ XChunkException::XChunkException(std::string message)
|
||||
{
|
||||
}
|
||||
|
||||
char const* XChunkException::what() const
|
||||
char const* XChunkException::what() const noexcept
|
||||
{
|
||||
return m_message.c_str();
|
||||
}
|
||||
|
@ -11,6 +11,6 @@ class XChunkException final : public std::exception
|
||||
public:
|
||||
explicit XChunkException(std::string message);
|
||||
|
||||
_NODISCARD char const* what() const override;
|
||||
_NODISCARD char const* what() const noexcept override;
|
||||
_NODISCARD const std::string& Message() const;
|
||||
};
|
||||
|
@ -5,7 +5,7 @@ WritingException::WritingException(std::string message)
|
||||
{
|
||||
}
|
||||
|
||||
char const* WritingException::what() const
|
||||
char const* WritingException::what() const noexcept
|
||||
{
|
||||
return m_error_message.c_str();
|
||||
}
|
||||
|
@ -11,6 +11,6 @@ class WritingException final : public std::exception
|
||||
public:
|
||||
explicit WritingException(std::string message);
|
||||
|
||||
_NODISCARD char const* what() const override;
|
||||
_NODISCARD char const* what() const noexcept override;
|
||||
_NODISCARD const std::string& Message() const;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user