Salome HOME
Fix for the issue #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git] / src / GeomValidators / GeomValidators_Tools.cpp
index f98088ed3b17f4059b46cbfc430d9838032497ae..9a78b5016b657e7ba80ff19dd66cab3f53c15b23 100644 (file)
@@ -16,19 +16,19 @@ namespace GeomValidators_Tools {
   {
     ObjectPtr anObject;
     std::string anAttrType = theAttribute->attributeType();
-    if (anAttrType == ModelAPI_AttributeRefAttr::type()) {
+    if (anAttrType == ModelAPI_AttributeRefAttr::typeId()) {
       AttributeRefAttrPtr anAttr = std::dynamic_pointer_cast<ModelAPI_AttributeRefAttr>(theAttribute);
       if (anAttr != NULL && anAttr->isObject())
         anObject = anAttr->object();
     }
-    if (anAttrType == ModelAPI_AttributeSelection::type()) {
+    if (anAttrType == ModelAPI_AttributeSelection::typeId()) {
       AttributeSelectionPtr anAttr = std::dynamic_pointer_cast<ModelAPI_AttributeSelection>(theAttribute);
-      if (anAttr != NULL && anAttr->isInitialized())
+      if (anAttr != NULL)
         anObject = anAttr->context();
     }
-    if (anAttrType == ModelAPI_AttributeReference::type()) {
+    if (anAttrType == ModelAPI_AttributeReference::typeId()) {
       AttributeReferencePtr anAttr = std::dynamic_pointer_cast<ModelAPI_AttributeReference>(theAttribute);
-      if (anAttr.get() != NULL && anAttr->isInitialized())
+      if (anAttr.get() != NULL)
         anObject = anAttr->value();
     }
     return anObject;