]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction of coding rules: too long lines
authormpv <mpv@opencascade.com>
Tue, 23 Oct 2018 13:12:33 +0000 (16:12 +0300)
committermpv <mpv@opencascade.com>
Fri, 26 Oct 2018 17:06:01 +0000 (20:06 +0300)
src/Model/Model_AttributeSelection.cpp
src/Selector/Selector_Selector.cpp
src/Selector/Selector_Selector.h

index ffa3015b4c700e765ac91bb146cc835a6a249176..cb17f802ec260e57cf0cdb53347b6274efcae789 100644 (file)
@@ -965,7 +965,8 @@ void Model_AttributeSelection::selectSubShape(
         aDoc = std::dynamic_pointer_cast<Model_Document>(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<ModelAPI_ResultPart>(aFound);
           aDoc = std::dynamic_pointer_cast<Model_Document>(aPart->partDoc());
index f59226cc92520b3c2279151b4cc996487fb3ff03..1f4fff9846a0498492a1fc9078d17949d4d44973 100644 (file)
@@ -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<std::pair<TopoDS_Shape, int> > aNBs; /// neighbor sub-shape -> level of neighborhood
+        std::list<std::pair<TopoDS_Shape, int> > 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<TopoDS_Shape, int>(aNBIter.Value(), aLevel));
             }
             aNewNB.Remove(aNBIter.Key());
index 06b05d2daebefdf91ccf55be88020d0dc2c3ebba..c4aba02a981065ecbe06078c8f02e531abfa3f20 100644 (file)
@@ -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);
 };