mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-05-09 22:14:56 +00:00
fix compilation on gcc
This commit is contained in:
parent
1e546d4a19
commit
066e9af1bc
@ -3,12 +3,11 @@
|
||||
#include <sstream>
|
||||
|
||||
GdtReadingException::GdtReadingException(std::string message)
|
||||
: exception(message.c_str()),
|
||||
m_message(std::move(message))
|
||||
: m_message(std::move(message))
|
||||
{
|
||||
}
|
||||
|
||||
const char* GdtReadingException::what() const
|
||||
const char* GdtReadingException::what() const noexcept
|
||||
{
|
||||
return m_message.c_str();
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ class GdtReadingException : public std::exception
|
||||
{
|
||||
public:
|
||||
explicit GdtReadingException(std::string message);
|
||||
_NODISCARD const char* what() const override;
|
||||
_NODISCARD const char* what() const noexcept override;
|
||||
|
||||
private:
|
||||
std::string m_message;
|
||||
|
Loading…
x
Reference in New Issue
Block a user