Remove dynamic exceptions
[anna.git] / source / core / util / ComponentManager.cpp
index 9f486a6..1607d9d 100644 (file)
@@ -19,7 +19,7 @@
 
 
 anna::Component* anna::ComponentManager::find(const char* className)
-throw() {
+{
   std::map <std::string, Component*>::iterator it = a_components.find(className);
 
   if(it != a_components.end()) return (*it).second;
@@ -28,7 +28,7 @@ throw() {
 }
 
 void anna::ComponentManager::attach(anna::Component* component)
-throw(anna::RuntimeException) {
+noexcept(false) {
   LOGMETHOD(anna::TraceMethod tm("anna::ComponentManager", "attach(component)", ANNA_FILE_LOCATION));
 
   if(component == NULL)
@@ -56,7 +56,7 @@ throw(anna::RuntimeException) {
 }
 
 void anna::ComponentManager::detach(anna::Component* component)
-throw(anna::RuntimeException) {
+noexcept(false) {
   LOGMETHOD(anna::TraceMethod tm("anna::ComponentManager", "detach(component)", ANNA_FILE_LOCATION));
 
   if(component == NULL)
@@ -83,7 +83,7 @@ throw(anna::RuntimeException) {
 }
 
 anna::xml::Node* anna::ComponentManager::asXML(anna::xml::Node* parent) const
-throw() {
+{
   anna::xml::Node* node(NULL);
   node = parent->createChild("anna.Components");
   std::map <std::string, Component*>::const_iterator it;