From: mpv Date: Tue, 8 May 2018 09:00:51 +0000 (+0300) Subject: Correction for the coding rules X-Git-Tag: V8_5_0rc2~8^2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a9f5debb92e0ca530f21d57be0fe236223a0de6;p=modules%2Fshaper.git Correction for the coding rules --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp index a5d1c816e..a8df94d7d 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp @@ -373,7 +373,7 @@ std::shared_ptr GeomAlgoAPI_ShapeTools::groupSharedTopology( } // Iterate over the map and group shapes. - NCollection_Vector aGroups; // vector of groups of shapes connected by vertices + NCollection_Vector 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(); diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_UnifySameDomain.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_UnifySameDomain.cpp index 1671f382c..a2a27ba5d 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_UnifySameDomain.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_UnifySameDomain.cpp @@ -99,7 +99,8 @@ void GeomAlgoAPI_UnifySameDomain::modified(const std::shared_ptr 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); diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index fcd859c7c..7c855b33b 100755 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -298,8 +298,8 @@ void ModuleBase_ResultPrs::ComputeSelection(const Handle(SelectMgr_Selection)& a // std::shared_ptr aShapePtr = ModelAPI_Tools::shape(aCompSolid); // if (aShapePtr.get()) { // TopoDS_Shape aShape = aShapePtr->impl(); - // 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;