From 59021a07c78eb8f73fefef9128ecc463040682ef Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 4 Dec 2017 07:46:43 +0300 Subject: [PATCH] Fix compilation problems on CentOS --- src/ModelHighAPI/ModelHighAPI_Dumper.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); } } -- 2.39.2