From: azv Date: Mon, 4 Dec 2017 04:46:43 +0000 (+0300) Subject: Fix compilation problems on CentOS X-Git-Tag: V_2.10.0RC~120 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=59021a07c78eb8f73fefef9128ecc463040682ef;p=modules%2Fshaper.git Fix compilation problems on CentOS --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 40852ee33..a5073da9e 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -267,7 +267,7 @@ bool ModelHighAPI_Dumper::process(const std::shared_ptr& theD CompositeFeaturePtr aCompFeat = std::dynamic_pointer_cast(*anObjIt); if (aCompFeat) // iteratively process composite features isOk = process(aCompFeat) && isOk; - else if (!isDumped(*anObjIt)) { + else if (!isDumped(EntityPtr(*anObjIt))) { // dump folder FolderPtr aFolder = std::dynamic_pointer_cast(*anObjIt); if (aFolder) @@ -288,7 +288,7 @@ bool ModelHighAPI_Dumper::process(const std::shared_ptrnumberOfSubs(); for (int anIndex = 0; anIndex < aNbSubs; ++anIndex) { FeaturePtr aFeature = theComposite->subFeature(anIndex); - if (isDumped(aFeature)) + if (isDumped(EntityPtr(aFeature))) continue; isSubDumped = true; @@ -546,7 +546,7 @@ bool ModelHighAPI_Dumper::isDumped(const AttributeRefAttrPtr& theRefAttr) const aFeature = ModelAPI_Feature::feature(theRefAttr->object()); else aFeature = ModelAPI_Feature::feature(theRefAttr->attr()->owner()); - return aFeature && isDumped(aFeature); + return aFeature && isDumped(EntityPtr(aFeature)); } bool ModelHighAPI_Dumper::isDumped(const AttributeRefListPtr& theRefList) const @@ -555,7 +555,7 @@ bool ModelHighAPI_Dumper::isDumped(const AttributeRefListPtr& theRefList) const std::list::iterator anIt = aRefs.begin(); for (; anIt != aRefs.end(); ++anIt) { FeaturePtr aFeature = ModelAPI_Feature::feature(*anIt); - if (aFeature && !isDumped(aFeature)) + if (aFeature && !isDumped(EntityPtr(aFeature))) return false; } return true; @@ -1064,7 +1064,7 @@ ModelHighAPI_Dumper& operator<<(ModelHighAPI_Dumper& theDumper, if ((*aRefIt)->id() == "ProjectedFeature") { // process projection only FeaturePtr anOwner = ModelAPI_Feature::feature((*aRefIt)->owner()); - if (anOwner && !theDumper.isDumped(anOwner)) + if (anOwner && !theDumper.isDumped(EntityPtr(anOwner))) theDumper.dumpFeature(anOwner, true); } }