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