From: mpv Date: Tue, 23 Oct 2018 13:12:33 +0000 (+0300) Subject: Correction of coding rules: too long lines X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3090f23f8cd3bd48b9bedac8015a2e8a0721e617;p=modules%2Fshaper.git Correction of coding rules: too long lines --- diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index ffa3015b4..cb17f802e 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -965,7 +965,8 @@ void Model_AttributeSelection::selectSubShape( aDoc = std::dynamic_pointer_cast(aRootDoc); aSubShapeName = aSubShapeName.substr(aPartEnd + 1); } else { - ObjectPtr aFound = owner()->document()->objectByName(ModelAPI_ResultPart::group(), aPartName); + ObjectPtr aFound = + owner()->document()->objectByName(ModelAPI_ResultPart::group(), aPartName); if (aFound.get()) { // found such part, so asking it for the name ResultPartPtr aPart = std::dynamic_pointer_cast(aFound); aDoc = std::dynamic_pointer_cast(aPart->partDoc()); diff --git a/src/Selector/Selector_Selector.cpp b/src/Selector/Selector_Selector.cpp index f59226cc9..1f4fff984 100644 --- a/src/Selector/Selector_Selector.cpp +++ b/src/Selector/Selector_Selector.cpp @@ -252,7 +252,7 @@ bool Selector_Selector::select(const TopoDS_Shape theContext, const TopoDS_Shape // check the value shape can be named as it is, or it is needed to construct it from the // higher level shapes (like a box vertex by faces that form this vertex) bool aIsFound = TNaming_Tool::HasLabel(myLab, theValue); - if (aIsFound) { // additional check for selection and delete evolution only: also could not be used + if (aIsFound) { // additional check for selection and delete evolution only: also could not use aIsFound = false; for(TNaming_SameShapeIterator aShapes(theValue, myLab); aShapes.More(); aShapes.Next()) { @@ -477,7 +477,7 @@ bool Selector_Selector::select(const TopoDS_Shape theContext, const TopoDS_Shape return false; // searching by neighbours - std::list > aNBs; /// neighbor sub-shape -> level of neighborhood + std::list > aNBs;//neighbor sub-shape -> level of neighborhood for(int aLevel = 1; true; aLevel++) { TopTools_MapOfShape aNewNB; findNeighbors(theContext, theValue, aLevel, aNewNB); @@ -487,7 +487,7 @@ bool Selector_Selector::select(const TopoDS_Shape theContext, const TopoDS_Shape // check which can be named correctly, without by neighbors type for(TopTools_MapOfShape::Iterator aNBIter(aNewNB); aNBIter.More(); ) { Selector_Selector aSelector(myLab.FindChild(1)); - if (aSelector.select(theContext, aNBIter.Value(), false)) { // add to the list of good NBs + if (aSelector.select(theContext, aNBIter.Value(), false)) {// add to list of good NBs aNBs.push_back(std::pair(aNBIter.Value(), aLevel)); } aNewNB.Remove(aNBIter.Key()); diff --git a/src/Selector/Selector_Selector.h b/src/Selector/Selector_Selector.h index 06b05d2da..c4aba02a9 100644 --- a/src/Selector/Selector_Selector.h +++ b/src/Selector/Selector_Selector.h @@ -98,7 +98,7 @@ private: /// Returns true if selection is correct. bool selectBySubSelector(const TopoDS_Shape theContext, const TopoDS_Shape theValue, const bool theUseNeighbors = true); - /// Searches the final shapes presented in all results from bases basing on the modification fields + /// Searches the final shapes presented in all results from bases basing on modification fields void findModificationResult(TopoDS_ListOfShape& theCommon); };