1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Replace throws() with nothrow

This commit is contained in:
Ivan Savenko 2024-02-13 23:42:31 +02:00
parent 7359b66f99
commit 45c971a405
3 changed files with 6 additions and 26 deletions

View File

@ -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();
}

View File

@ -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();
}

View File

@ -29,11 +29,7 @@ public:
{
}
virtual ~rmgException() throw ()
{
};
const char *what() const throw () override
const char *what() const noexcept override
{
return msg.c_str();
}