Browse Source

Replace throws() with nothrow

Ivan Savenko 1 year ago
parent
commit
45c971a405
3 changed files with 6 additions and 26 deletions
  1. 2 10
      AI/Nullkiller/Goals/AbstractGoal.h
  2. 2 10
      AI/VCAI/VCAI.h
  3. 2 6
      lib/rmg/Functions.h

+ 2 - 10
AI/Nullkiller/Goals/AbstractGoal.h

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

+ 2 - 10
AI/VCAI/VCAI.h

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

+ 2 - 6
lib/rmg/Functions.h

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