X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Tools.cpp;h=bbe2969817513dd4a31bf352e794950d47a9a247;hb=8f060aedd5949990421a96e3b4086f43efa13d24;hp=82c5a3f93986c9c07d3857e797771ec59f7cdc52;hpb=1b93f1881c5fec599aa79707f93c84dd9c287bc0;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Tools.cpp b/src/SketchPlugin/SketchPlugin_Tools.cpp index 82c5a3f93..bbe296981 100644 --- a/src/SketchPlugin/SketchPlugin_Tools.cpp +++ b/src/SketchPlugin/SketchPlugin_Tools.cpp @@ -33,17 +33,17 @@ void clearExpressions(AttributePoint2DPtr theAttribute) void clearExpressions(AttributePtr theAttribute) { // Double - AttributeDoublePtr anAttributeDouble = + AttributeDoublePtr anAttributeDouble = std::dynamic_pointer_cast(theAttribute); if (anAttributeDouble.get()) clearExpressions(anAttributeDouble); // Point - AttributePointPtr anAttributePoint = + AttributePointPtr anAttributePoint = std::dynamic_pointer_cast(theAttribute); if (anAttributePoint.get()) clearExpressions(anAttributePoint); // Point2D - AttributePoint2DPtr anAttributePoint2D = + AttributePoint2DPtr anAttributePoint2D = std::dynamic_pointer_cast(theAttribute); if (anAttributePoint2D.get()) clearExpressions(anAttributePoint2D); @@ -54,7 +54,7 @@ void clearExpressions(FeaturePtr theFeature) if (!theFeature.get()) return; - std::list anAttributes = theFeature->data()->attributes(std::string()); + std::list anAttributes = theFeature->data()->attributes(std::string()); std::list::iterator anAttributeIt = anAttributes.begin(); for (; anAttributeIt != anAttributes.end(); ++anAttributeIt) { clearExpressions(*anAttributeIt); @@ -63,8 +63,8 @@ void clearExpressions(FeaturePtr theFeature) std::shared_ptr getCoincidencePoint(const FeaturePtr theStartCoin) { - std::shared_ptr aPnt = SketcherPrs_Tools::getPoint(theStartCoin.get(), - SketchPlugin_Constraint::ENTITY_A()); + std::shared_ptr aPnt = SketcherPrs_Tools::getPoint(theStartCoin.get(), + SketchPlugin_Constraint::ENTITY_A()); if (aPnt.get() == NULL) aPnt = SketcherPrs_Tools::getPoint(theStartCoin.get(), SketchPlugin_Constraint::ENTITY_B()); return aPnt;