From: azv Date: Mon, 27 Feb 2017 08:55:11 +0000 (+0300) Subject: Fix coding style errors X-Git-Tag: V_2.7.0~266 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d16b19d9801477bbfc916f02e0559aecbc72a8e;p=modules%2Fshaper.git Fix coding style errors --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp index 8b3539c26..090fd3096 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.cpp @@ -78,7 +78,7 @@ namespace GeomAlgoAPI_ShapeAPI if (!theEdge) { throw GeomAlgoAPI_Exception("Cylinder builder :: the axis is not valid."); } - + std::shared_ptr anAxis; anAxis = std::shared_ptr(new GeomAPI_Ax2(theBasePoint, theEdge->line()->direction())); diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateCoincidence.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateCoincidence.cpp index 205195253..bc79c7c3e 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateCoincidence.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateCoincidence.cpp @@ -10,7 +10,8 @@ #include #include -void PlaneGCSSolver_UpdateCoincidence::attach(SketchSolver_Constraint* theObserver, const std::string& theType) +void PlaneGCSSolver_UpdateCoincidence::attach(SketchSolver_Constraint* theObserver, + const std::string& theType) { if (theType == GROUP()) { std::list::iterator aPlaceToAdd = myObservers.end(); diff --git a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateFeature.cpp b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateFeature.cpp index 5ff77f8f3..10f308878 100644 --- a/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateFeature.cpp +++ b/src/SketchSolver/PlaneGCSSolver/PlaneGCSSolver_UpdateFeature.cpp @@ -7,7 +7,8 @@ #include #include -void PlaneGCSSolver_UpdateFeature::attach(SketchSolver_Constraint* theObserver, const std::string& theType) +void PlaneGCSSolver_UpdateFeature::attach(SketchSolver_Constraint* theObserver, + const std::string& theType) { if (theType == GROUP()) myObservers.push_back(theObserver); diff --git a/src/SketchSolver/SketchSolver_Storage.cpp b/src/SketchSolver/SketchSolver_Storage.cpp index 81714314f..7c6f87be0 100644 --- a/src/SketchSolver/SketchSolver_Storage.cpp +++ b/src/SketchSolver/SketchSolver_Storage.cpp @@ -44,7 +44,8 @@ void SketchSolver_Storage::addConstraint(ConstraintPtr theConstraint, //// theConstraint->data()->attributes(ModelAPI_AttributeRefAttr::typeId()); //// std::list::const_iterator anAttrIt = aRefAttrs.begin(); //// for (; anAttrIt != aRefAttrs.end(); ++anAttrIt) { -//// AttributeRefAttrPtr aRef = std::dynamic_pointer_cast(*anAttrIt); +//// AttributeRefAttrPtr aRef = +//// std::dynamic_pointer_cast(*anAttrIt); //// if (aRef->isObject()) { //// FeaturePtr aFeature = ModelAPI_Feature::feature(aRef->object()); //// if (aFeature) addEntity(aFeature, EntityWrapperPtr()); @@ -54,7 +55,8 @@ void SketchSolver_Storage::addConstraint(ConstraintPtr theConstraint, //// std::list aRefLists = //// theConstraint->data()->attributes(ModelAPI_AttributeRefList::typeId()); //// for (anAttrIt = aRefLists.begin(); anAttrIt != aRefLists.end(); ++anAttrIt) { -//// AttributeRefListPtr aRef = std::dynamic_pointer_cast(*anAttrIt); +//// AttributeRefListPtr aRef = +//// std::dynamic_pointer_cast(*anAttrIt); //// std::list anObj = aRef->list(); //// std::list::iterator anIt = anObj.begin(); //// for (; anIt != anObj.end(); ++anIt) {