]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_Validators.cpp
Salome HOME
Resolve batch runtime errors on debian squeeze
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Validators.cpp
index 29bdf3c27310df0ba7abadc7ca882ea353ef4f85..abef5066c21a8809d83327f5d92be9627796bb73 100644 (file)
@@ -62,7 +62,7 @@ bool SketchPlugin_DifferentObjectsValidator::isValid(const FeaturePtr& theFeatur
                                                  const ObjectPtr& theObject) const
 {
   std::list<std::shared_ptr<ModelAPI_Attribute> > anAttrs = 
-    theFeature->data()->attributes(ModelAPI_AttributeRefAttr::type());
+    theFeature->data()->attributes(ModelAPI_AttributeRefAttr::typeId());
   std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
   for(; anAttr != anAttrs.end(); anAttr++) {
     if (*anAttr) {
@@ -86,7 +86,7 @@ bool SketchPlugin_DifferentObjectsValidator::isValid(
     const FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(anObj);
 
     std::list<std::shared_ptr<ModelAPI_Attribute> > anAttrs = 
-      aFeature->data()->attributes(ModelAPI_AttributeRefAttr::type());
+      aFeature->data()->attributes(ModelAPI_AttributeRefAttr::typeId());
     std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
     for(; anAttr != anAttrs.end(); anAttr++) {
       if (*anAttr && *anAttr != theAttribute) {
@@ -105,7 +105,7 @@ bool SketchPlugin_DifferentObjectsValidator::isValid(const FeaturePtr& theFeatur
   const std::list<std::string>& theArguments, const AttributePtr& theAttribute) const
 {
   std::list<std::shared_ptr<ModelAPI_Attribute> > anAttrs = 
-    theFeature->data()->attributes(ModelAPI_AttributeRefAttr::type());
+    theFeature->data()->attributes(ModelAPI_AttributeRefAttr::typeId());
   std::list<std::shared_ptr<ModelAPI_Attribute> >::iterator anAttr = anAttrs.begin();
   for(; anAttr != anAttrs.end(); anAttr++) {
     if (*anAttr) {