Przeglądaj źródła

Removed non-empty throw specifications.

They were throwing warnings and shouldn't be used anyway. See, for example
http://www.linuxprogrammingblog.com/cpp-exception-specifications-are-evil
Sascha Zelzer 13 lat temu
rodzic
commit
107ffad785

+ 1 - 1
Libs/PluginFramework/ctkRuntimeException.cpp

@@ -54,7 +54,7 @@ QString ctkRuntimeException::getCause() const
 }
 
 //----------------------------------------------------------------------------
-void ctkRuntimeException::setCause(const QString& cause) throw(std::logic_error)
+void ctkRuntimeException::setCause(const QString& cause)
 {
   if (!this->cause.isEmpty()) throw std::logic_error("The cause for this ctkServiceException instance is already set");
 

+ 1 - 1
Libs/PluginFramework/ctkRuntimeException.h

@@ -44,7 +44,7 @@ public:
   ~ctkRuntimeException() throw() {}
 
   QString getCause() const;
-  void setCause(const QString& cause) throw(std::logic_error);
+  void setCause(const QString& cause);
 
   const char* what() const throw();