]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Coding style (fix too long line)
authorazv <azv@opencascade.com>
Wed, 26 Jan 2022 10:49:59 +0000 (13:49 +0300)
committerazv <azv@opencascade.com>
Wed, 26 Jan 2022 10:51:44 +0000 (13:51 +0300)
env.sh
src/FeaturesPlugin/FeaturesPlugin_ImportResult.cpp
src/GeomAPI/GeomAPI_AISObject.cpp
src/ModuleBase/ModuleBase_Tools.cpp
src/XGUI/XGUI_WorkshopListener.cpp

diff --git a/env.sh b/env.sh
index 441c6e3742648f1c8a9039b15b5529bda119fb8c..68a9851b52dd820dbac3107c54212e276a2a262c 100644 (file)
--- a/env.sh
+++ b/env.sh
@@ -1,6 +1,6 @@
 #!/bin/bash -x
 
-export SALOME_DIR=/dn46/SALOME/series9x/current-2021-07-12
+export SALOME_DIR=/dn46/SALOME/series9x/current-2022-01-07
 
 # Path to sources
 export SOURCES_DIR=$(pwd)
index 9e6a14c4844df1f522e4fcaac1b33b5aa1194a83..d3babcb86e6834538b04c92e9537730297e64ee4 100644 (file)
@@ -112,7 +112,8 @@ void FeaturesPlugin_ImportResult::execute()
       for (int aGroupIndex = 0; aGroupIndex < aGroupCount; ++aGroupIndex)
       {
         ResultGroupPtr aResultGroup =
-          std::dynamic_pointer_cast<ModelAPI_ResultGroup>((*aDoc)->object(ModelAPI_ResultGroup::group(), aGroupIndex));
+            std::dynamic_pointer_cast<ModelAPI_ResultGroup>((*aDoc)->object(ModelAPI_ResultGroup::group(),
+                                                                            aGroupIndex));
 
         if (!aResultGroup.get() || !aResultGroup->shape().get())
           continue;
@@ -161,7 +162,8 @@ void FeaturesPlugin_ImportResult::execute()
 
     AttributeSelectionListPtr aNewSelectionList = aNewGroupFeature->selectionList("group_list");
     aNewSelectionList->setSelectionType (aSelectionList->selectionType());
-    GeomAPI_Shape::ShapeType aTypeOfShape = GeomAPI_Shape::shapeTypeByStr (aSelectionList->selectionType());
+    GeomAPI_Shape::ShapeType aTypeOfShape =
+        GeomAPI_Shape::shapeTypeByStr(aSelectionList->selectionType());
 
     for (int aLocalSelIndex = 0; aLocalSelIndex < aSelectionList->size(); aLocalSelIndex++) {
 
index 93c32e41dbcc1d86532f5aefc789966d9b839ec6..a6dae19ca8c3542089c540ce8baf2c38b142f431 100644 (file)
@@ -275,8 +275,8 @@ void GeomAPI_AISObject::createPerpendicular(std::shared_ptr<GeomAPI_Shape> theLi
 
     setImpl(new Handle(AIS_InteractiveObject)(aPerpendicular));
   } else {
-    Handle(PrsDim_PerpendicularRelation) aPerpendicular = Handle(PrsDim_PerpendicularRelation)::DownCast(
-        anAIS);
+    Handle(PrsDim_PerpendicularRelation) aPerpendicular =
+        Handle(PrsDim_PerpendicularRelation)::DownCast(anAIS);
     if (!aPerpendicular.IsNull()) {
       aPerpendicular->SetFirstShape(theLine1->impl<TopoDS_Shape>());
       aPerpendicular->SetSecondShape(theLine2->impl<TopoDS_Shape>());
index 851ae64a43ec9cf0411bcfffab04bd04239a3f45..bfe204d60cf278870243211732e4f9f79f2415b3 100644 (file)
@@ -1406,7 +1406,8 @@ static void setDisplayingByLoop(DocumentPtr theDoc, int theSize,
 {
   for (int anIndex = theSize - 1; anIndex >= 0; --anIndex) {
     ObjectPtr anObject = theDoc->object(theGroup, anIndex);
-    anObject->setDisplayed((theDisplayingId == 1 && anIndex == theSize - 1) || theDisplayingId == 2);
+    anObject->setDisplayed((theDisplayingId == 1 && anIndex == theSize - 1) ||
+                           theDisplayingId == 2);
   }
 }
 
@@ -1440,11 +1441,14 @@ void setDisplaying(ResultPartPtr thePart, bool theDisplayFromScript)
       return;
   }
 
-  setDisplayingByLoop(aDoc, aConstructionSize,
-    ModelAPI_ResultConstruction::group(), theDisplayFromScript, aDisplayingId);
-  setDisplayingByLoop(aDoc, aGroupSize, ModelAPI_ResultGroup::group(), theDisplayFromScript, aDisplayingId);
-  setDisplayingByLoop(aDoc, aFieldSize, ModelAPI_ResultField::group(), theDisplayFromScript, aDisplayingId);
-  setDisplayingByLoop(aDoc, aResultSize, ModelAPI_ResultBody::group(), theDisplayFromScript, aDisplayingId);
+  setDisplayingByLoop(aDoc, aConstructionSize, ModelAPI_ResultConstruction::group(),
+                      theDisplayFromScript, aDisplayingId);
+  setDisplayingByLoop(aDoc, aGroupSize, ModelAPI_ResultGroup::group(),
+                      theDisplayFromScript, aDisplayingId);
+  setDisplayingByLoop(aDoc, aFieldSize, ModelAPI_ResultField::group(),
+                      theDisplayFromScript, aDisplayingId);
+  setDisplayingByLoop(aDoc, aResultSize, ModelAPI_ResultBody::group(),
+                      theDisplayFromScript, aDisplayingId);
   isDoingDisplay = false;
 }
 
index 34b87d99a97e4603d1f51e05ce7e9634158eb341..370cbe793357c75ec81c2ca422f0a1191ba124e0 100644 (file)
@@ -422,7 +422,8 @@ void XGUI_WorkshopListener::
 #ifdef DEBUG_RESULT_COMPSOLID
       ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
       if (aRes.get()) {
-        ResultCompSolidPtr aCompSolidRes = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aRes);
+        ResultCompSolidPtr aCompSolidRes =
+            std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aRes);
         if (aCompSolidRes.get()) {
             qDebug(QString("COMPSOLID, numberOfSubs = %1")
               .arg(aCompSolidRes->numberOfSubs()).toStdString().c_str());