]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Correction for the coding rules
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 8 May 2018 09:00:51 +0000 (12:00 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 8 May 2018 09:00:51 +0000 (12:00 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp
src/GeomAlgoAPI/GeomAlgoAPI_UnifySameDomain.cpp
src/ModuleBase/ModuleBase_ResultPrs.cpp

index a5d1c816ea1c1e28c6adab21a6c27c0ab5ac63a0..a8df94d7dbd49d0fcbae3da17db9a159078a9fb2 100644 (file)
@@ -373,7 +373,7 @@ std::shared_ptr<GeomAPI_Shape> GeomAlgoAPI_ShapeTools::groupSharedTopology(
   }
 
   // Iterate over the map and group shapes.
-  NCollection_Vector<TopTools_ListOfShape> aGroups; // vector of groups of shapes connected by vertices
+  NCollection_Vector<TopTools_ListOfShape> aGroups; // groups of shapes connected by vertices
   while (!allVertices.IsEmpty()) {
     // Get first group of shapes in map, and then unbind it.
     const TopoDS_Shape& aKey = allVertices.First();
index 1671f382ce341f46dc3ee5c9145f8ee62f3ed6c5..a2a27ba5d968c6a0c4d5b576a9af9ae3386a9b51 100644 (file)
@@ -99,7 +99,8 @@ void GeomAlgoAPI_UnifySameDomain::modified(const std::shared_ptr<GeomAPI_Shape>
     const TopTools_ListOfShape& aMList = aIsModified ?
       aUnifyAlgo.History()->Modified(aShape) : aUnifyAlgo.History()->Generated(aShape);
     for (TopTools_ListIteratorOfListOfShape aModified(aMList); aModified.More(); aModified.Next()) {
-      for (TopExp_Explorer anExp(aModified.Value(), aShape.ShapeType()); anExp.More(); anExp.Next()) {
+      for (TopExp_Explorer anExp(aModified.Value(), aShape.ShapeType());
+           anExp.More(); anExp.Next()) {
         GeomShapePtr aGeomShape(new GeomAPI_Shape());
         aGeomShape->setImpl(new TopoDS_Shape(anExp.Current()));
         theHistory.push_back(aGeomShape);
index fcd859c7c07222f590b469126424ebc513d3b0f2..7c855b33b35913179e21035668499fe11acc5834 100755 (executable)
@@ -298,8 +298,8 @@ void ModuleBase_ResultPrs::ComputeSelection(const Handle(SelectMgr_Selection)& a
   //    std::shared_ptr<GeomAPI_Shape> aShapePtr = ModelAPI_Tools::shape(aCompSolid);
   //    if (aShapePtr.get()) {
   //      TopoDS_Shape aShape = aShapePtr->impl<TopoDS_Shape>();
-  //      int aPriority = StdSelect_BRepSelectionTool::GetStandardPriority(aShape, TopAbs_COMPSOLID);
-  //      /// It is important to have priority for the shape of comp solid result less than priority
+  //   int aPriority = StdSelect_BRepSelectionTool::GetStandardPriority(aShape, TopAbs_COMPSOLID);
+  //     /// It is important to have priority for the shape of comp solid result less than priority
   //      /// for the presentation shape which is a sub-result.
   //      /// Reason is to select the sub-objects before: #1592
   //      aPriority = aPriority - 1;