From 59610176acaef6df307f9a2ec24fe3a14bfaef0b Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 26 Jan 2022 13:49:59 +0300 Subject: [PATCH] Coding style (fix too long line) --- env.sh | 2 +- .../FeaturesPlugin_ImportResult.cpp | 6 ++++-- src/GeomAPI/GeomAPI_AISObject.cpp | 4 ++-- src/ModuleBase/ModuleBase_Tools.cpp | 16 ++++++++++------ src/XGUI/XGUI_WorkshopListener.cpp | 3 ++- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/env.sh b/env.sh index 441c6e374..68a9851b5 100644 --- 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) diff --git a/src/FeaturesPlugin/FeaturesPlugin_ImportResult.cpp b/src/FeaturesPlugin/FeaturesPlugin_ImportResult.cpp index 9e6a14c48..d3babcb86 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_ImportResult.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_ImportResult.cpp @@ -112,7 +112,8 @@ void FeaturesPlugin_ImportResult::execute() for (int aGroupIndex = 0; aGroupIndex < aGroupCount; ++aGroupIndex) { ResultGroupPtr aResultGroup = - std::dynamic_pointer_cast((*aDoc)->object(ModelAPI_ResultGroup::group(), aGroupIndex)); + std::dynamic_pointer_cast((*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++) { diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index 93c32e41d..a6dae19ca 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -275,8 +275,8 @@ void GeomAPI_AISObject::createPerpendicular(std::shared_ptr 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()); aPerpendicular->SetSecondShape(theLine2->impl()); diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index 851ae64a4..bfe204d60 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -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; } diff --git a/src/XGUI/XGUI_WorkshopListener.cpp b/src/XGUI/XGUI_WorkshopListener.cpp index 34b87d99a..370cbe793 100644 --- a/src/XGUI/XGUI_WorkshopListener.cpp +++ b/src/XGUI/XGUI_WorkshopListener.cpp @@ -422,7 +422,8 @@ void XGUI_WorkshopListener:: #ifdef DEBUG_RESULT_COMPSOLID ResultPtr aRes = std::dynamic_pointer_cast(anObject); if (aRes.get()) { - ResultCompSolidPtr aCompSolidRes = std::dynamic_pointer_cast(aRes); + ResultCompSolidPtr aCompSolidRes = + std::dynamic_pointer_cast(aRes); if (aCompSolidRes.get()) { qDebug(QString("COMPSOLID, numberOfSubs = %1") .arg(aCompSolidRes->numberOfSubs()).toStdString().c_str()); -- 2.39.2