]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Apply the coding rules standards V9_2_0a1
authormpv <mpv@opencascade.com>
Tue, 25 Sep 2018 14:41:12 +0000 (17:41 +0300)
committermpv <mpv@opencascade.com>
Tue, 25 Sep 2018 14:41:35 +0000 (17:41 +0300)
src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp
src/FeaturesPlugin/FeaturesPlugin_Validators.cpp
src/ModuleBase/ModuleBase_ISelection.h

index 19e66b19c75cbd89d6c8e7243f4868c866c2aa74..b7fe7b8e84e02ecf635b5f963eaedefdcb790855 100644 (file)
@@ -97,7 +97,8 @@ void FeaturesPlugin_RemoveSubShapes::attributeChanged(const std::string& theID)
     }
 
     std::list<GeomShapePtr> aSubShapes = GeomAlgoAPI_ShapeTools::getLowLevelSubShapes(aBaseShape);
-    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt) {
+    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt)
+    {
       GeomShapePtr aSubShape = *anIt;
       if(!isHasSubs) {
         aSubShapesToKeepAttrList->append(aContext, aSubShape);
@@ -126,7 +127,8 @@ void FeaturesPlugin_RemoveSubShapes::attributeChanged(const std::string& theID)
     int anIndex;
     const int aSubsToKeepNb = aSubShapesToKeepAttrList->size();
     std::list<GeomShapePtr> aSubShapes = GeomAlgoAPI_ShapeTools::getLowLevelSubShapes(aBaseShape);
-    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt) {
+    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt)
+    {
       GeomShapePtr aSubShape = *anIt;
       for(anIndex = 0; anIndex < aSubsToKeepNb; ++anIndex) {
         AttributeSelectionPtr anAttrSelectionInList = aSubShapesToKeepAttrList->value(anIndex);
@@ -165,7 +167,8 @@ void FeaturesPlugin_RemoveSubShapes::attributeChanged(const std::string& theID)
     int anIndex;
     const int aSubsToRemoveNb = aSubShapesToRemoveAttrList->size();
     std::list<GeomShapePtr> aSubShapes = GeomAlgoAPI_ShapeTools::getLowLevelSubShapes(aBaseShape);
-    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt) {
+    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt)
+    {
       GeomShapePtr aSubShape = *anIt;
       for(anIndex = 0; anIndex < aSubsToRemoveNb; ++anIndex) {
         AttributeSelectionPtr anAttrSelectionInList = aSubShapesToRemoveAttrList->value(anIndex);
index b991e38f0b58914f2463c27ba09d21f9d4d5d4b9..bfb36543ceb53136d00af6a42301ad6027b25a33 100644 (file)
@@ -838,7 +838,8 @@ bool FeaturesPlugin_ValidatorRemoveSubShapesSelection::isValid(const AttributePt
     bool isSameFound = false;
     AttributeSelectionPtr anAttrSelectionInList = aSubShapesAttrList->value(anIndex);
     GeomShapePtr aShapeToAdd = anAttrSelectionInList->value();
-    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt) {
+    for (ListOfShape::const_iterator anIt = aSubShapes.cbegin(); anIt != aSubShapes.cend(); ++anIt)
+    {
       if ((*anIt)->isEqual(aShapeToAdd)) {
         isSameFound = true;
         break;
index 83500c9a725c732935b2378792573b3ec78786b5..6954118c8fd71e5a3d025f09297f05d3446b0889 100644 (file)
@@ -93,7 +93,8 @@ class MODULEBASE_EXPORT ModuleBase_ISelection
   /// Return the IO from the viewer presentation.
   /// \param thePrs a selected object
   /// \return an interactive object
-  virtual Handle(AIS_InteractiveObject) getIO(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs) = 0;
+  virtual Handle(AIS_InteractiveObject)
+    getIO(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs) = 0;
 
   /// Wraps the object list into the viewer prs list
   /// \param theObjects a list of objects