mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Replace throws() with nothrow
This commit is contained in:
@@ -180,11 +180,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~cannotFulfillGoalException() throw ()
|
||||
{
|
||||
};
|
||||
|
||||
const char * what() const throw () override
|
||||
const char * what() const noexcept override
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
@@ -203,11 +199,7 @@ public:
|
||||
msg = goal->toString();
|
||||
}
|
||||
|
||||
virtual ~goalFulfilledException() throw ()
|
||||
{
|
||||
};
|
||||
|
||||
const char * what() const throw () override
|
||||
const char * what() const noexcept override
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
|
@@ -371,11 +371,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~cannotFulfillGoalException() throw ()
|
||||
{
|
||||
};
|
||||
|
||||
const char * what() const throw () override
|
||||
const char * what() const noexcept override
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
@@ -394,11 +390,7 @@ public:
|
||||
msg = goal->name();
|
||||
}
|
||||
|
||||
virtual ~goalFulfilledException() throw ()
|
||||
{
|
||||
};
|
||||
|
||||
const char * what() const throw () override
|
||||
const char * what() const noexcept override
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
|
@@ -28,12 +28,8 @@ public:
|
||||
explicit rmgException(const std::string& _Message) : msg(_Message)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~rmgException() throw ()
|
||||
{
|
||||
};
|
||||
|
||||
const char *what() const throw () override
|
||||
|
||||
const char *what() const noexcept override
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
|
Reference in New Issue
Block a user