Salome HOME
Moved the model messages from Model to ModelAPI and removed dependencies on Model
[modules/shaper.git] / src / Model / Model_Data.cpp
index 80eba05b0e5a4cac492a4c0930e6d2e2100fca5e..5b3a944c914e5e62828e508b19b5ca4ac7d71167 100644 (file)
@@ -49,8 +49,7 @@ void Model_Data::setName(string theName)
   }
   if (isModified) {
     static Events_ID anEvent = Events_Loop::eventByName(EVENT_FEATURE_UPDATED);
-    Model_FeatureUpdatedMessage aMsg(myFeature, anEvent);
-    Events_Loop::loop()->send(aMsg, false);
+    ModelAPI_EventCreator::get()->sendUpdated(myFeature, anEvent, false);
   }
 }
 
@@ -223,8 +222,7 @@ void Model_Data::sendAttributeUpdated(ModelAPI_Attribute* theAttr)
 {
   theAttr->setInitialized();
   static const Events_ID anEvent = Events_Loop::eventByName(EVENT_FEATURE_UPDATED);
-  Model_FeatureUpdatedMessage aMsg(myFeature, anEvent);
-  Events_Loop::loop()->send(aMsg);
+  ModelAPI_EventCreator::get()->sendUpdated(myFeature, anEvent);
 }
 
 #include <TNaming_Builder.hxx>