X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Events.cpp;h=3a060d43f01fac344c320019bf1acb6543e0bf5e;hb=41f9517e84ae934ce536718d4f48e26731c8430d;hp=34d9522d86c42182630f13c92a9a121754a634d8;hpb=459e0945822c4ffd06cfc3bc3974ee1241ca93f7;p=modules%2Fshaper.git diff --git a/src/Model/Model_Events.cpp b/src/Model/Model_Events.cpp index 34d9522d8..3a060d43f 100644 --- a/src/Model/Model_Events.cpp +++ b/src/Model/Model_Events.cpp @@ -63,7 +63,7 @@ std::shared_ptr Model_ObjectUpdatedMessage::newEmpty() void Model_ObjectUpdatedMessage::Join(const std::shared_ptr& theJoined) { - std::shared_ptr aJoined = + std::shared_ptr aJoined = std::dynamic_pointer_cast(theJoined); std::set::iterator aFIter = aJoined->myObjects.begin(); for (; aFIter != aJoined->myObjects.end(); aFIter++) { @@ -94,7 +94,7 @@ const Events_ID Model_ObjectDeletedMessage::messageId() void Model_ObjectDeletedMessage::Join(const std::shared_ptr& theJoined) { - std::shared_ptr aJoined = + std::shared_ptr aJoined = std::dynamic_pointer_cast(theJoined); std::set::iterator aGIter = aJoined->myGroups.begin(); for (; aGIter != aJoined->myGroups.end(); aGIter++) {