]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Meet coding style (split lines longer than 100 characters)
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Sat, 27 Jun 2020 17:43:48 +0000 (20:43 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Sat, 27 Jun 2020 17:43:48 +0000 (20:43 +0300)
src/Model/Model_AttributeSelection.cpp
src/Model/Model_AttributeSelection.h
src/Model/Model_Document.h
src/PartSet/PartSet_MenuMgr.cpp
src/PartSet/PartSet_SketcherReentrantMgr.h
src/SketchAPI/SketchAPI_BSpline.cpp
src/SketchPlugin/SketchPlugin_Offset.cpp
src/SketcherPrs/SketcherPrs_Offset.h

index 88912aaca7d089761b674a01e9704a513f9a4c57..3127aeb8549ad702cdee3c5f6693fce7fa80d549 100644 (file)
@@ -1914,7 +1914,8 @@ bool Model_AttributeSelection::restoreContext(std::wstring theName,
     // name in PartSet?
     aDoc = std::dynamic_pointer_cast<Model_Document>(
       ModelAPI_Session::get()->moduleDocument());
-    if (theName.find(ModelAPI_Tools::toWString(aDoc->kind())) == 0) { // remove the document identifier from name if exists
+    if (theName.find(ModelAPI_Tools::toWString(aDoc->kind())) == 0) {
+      // remove the document identifier from name if exists
       aSubShapeName = theName.substr(aDoc->kind().size() + 1);
       aName = aSubShapeName;
       std::string::size_type n = aName.find('/');
index 3b718a223b5b72ecef20e791dc9a3f0accdc7e4c..0723ef3e1dcdb7118ae358df2a9760cf55710315 100644 (file)
@@ -48,7 +48,8 @@ class Model_AttributeSelection : public ModelAPI_AttributeSelection,
   /// Reference to the parent attribute, if any (to split selection compounds in issue 1799)
   Model_AttributeSelectionList* myParent;
 
-  std::shared_ptr<Model_Document> myRestoreDocument; // current document to restore by name
+  /// current document to restore by name
+  std::shared_ptr<Model_Document> myRestoreDocument;
   /// If true attribute selects geometry instead of shape.
   bool myIsGeometricalSelection;
 
index 5239524e14d71839ae7c8fc185343f6f5bd26efe..9055af38fa75f78c67d80fc80da44c18aaf94235 100644 (file)
@@ -284,7 +284,9 @@ class Model_Document : public ModelAPI_Document
   int numberOfNameInHistory(const ObjectPtr& theNameObject, const TDF_Label& theStartFrom);
   //! Returns the result by name of the result (names of results must be unique, used for naming
   //! selection by name.
-  ResultPtr findByName(std::wstring& theName, std::wstring& theSubShapeName, bool& theUniqueContext);
+  ResultPtr findByName(std::wstring& theName,
+                       std::wstring& theSubShapeName,
+                       bool& theUniqueContext);
 
   ///! Returns all features of the document including the hidden features which are not in
   ///! history. Not very fast method, for calling once, not in big cycles.
index 7eca187494cff72001c3399f38d4e36d375d5d06..911273a6c5e13d4f3de6760d124f8981c1d0ec0a 100644 (file)
@@ -319,8 +319,8 @@ void PartSet_MenuMgr::onLineDetach(QAction* theAction)
     XGUI_Workshop* aWorkshop = aConnector->workshop();
     ModuleBase_Operation* anOperation = myModule->workshop()->currentOperation();
 
-    ModuleBase_Operation* anOpAction =
-      new ModuleBase_Operation(tr("Detach %1").arg(QString::fromStdWString(aLine->data()->name())), myModule);
+    ModuleBase_Operation* anOpAction = new ModuleBase_Operation(tr("Detach %1").arg(
+        QString::fromStdWString(aLine->data()->name())), myModule);
     bool isSketchOp = PartSet_SketcherMgr::isSketchOperation(anOperation);
     XGUI_OperationMgr* anOpMgr = aConnector->workshop()->operationMgr();
     // the active nested sketch operation should be aborted unconditionally
index c11f56bcf439d45bfbf7db63e7863f01380898c9..c64d1fe93278fd96ce05ba215839bb14ebb0fe67 100644 (file)
@@ -242,7 +242,8 @@ private:
   std::shared_ptr<GeomAPI_Pnt2d> myClickedSketchPoint; /// cashed clicked point
 
   bool myIsAutoConstraints;
-  void* myLastAutoConstraint; //< Stores address of last automatic constraint. Connot be used as a pointer!!!
+  void* myLastAutoConstraint; //< Stores address of last automatic constraint.
+                              //< Cannot be used as a pointer!!!
 };
 
 #endif
index 2280396c170ce60ac341562fd9701b67ba0e1726..c6667c55f004b710e376480cc9c2d5ee00dd5891 100644 (file)
@@ -155,7 +155,8 @@ static void createPole(const CompositeFeaturePtr& theSketch,
   aPointFeature->execute();
 
   std::wostringstream aName;
-  aName << theBSpline->name() << "_" << ModelAPI_Tools::toWString(thePoles->id()) << "_" << thePoleIndex;
+  aName << theBSpline->name() << "_" << ModelAPI_Tools::toWString(thePoles->id())
+                              << "_" << thePoleIndex;
   aPointFeature->data()->setName(aName.str());
   aPointFeature->lastResult()->data()->setName(aName.str());
 
index 30de8d22cebc4a857d294bff17bc1f9600c5d8a3..e434164accc59acff39f833ffb91a3c12a731867 100644 (file)
@@ -564,7 +564,8 @@ void SketchPlugin_Offset::updateExistentOrCreateNew(const GeomShapePtr& theShape
         (theFeature->attribute(SketchPlugin_Ellipse::CENTER_ID()))->setValue(aCP);
       std::dynamic_pointer_cast<GeomDataAPI_Point2D>
         (theFeature->attribute(SketchPlugin_Ellipse::FIRST_FOCUS_ID()))->setValue(aFocus);
-      theFeature->real(SketchPlugin_Ellipse::MINOR_RADIUS_ID())->setValue(anEllipseEdge->minorRadius());
+      theFeature->real(SketchPlugin_Ellipse::MINOR_RADIUS_ID())->setValue(
+        anEllipseEdge->minorRadius());
     }
   }
   else {
index b890317b8a6eaac1b7358c255b0d0a131da02ca9..04e7d76de802f9ec85a261ac27e61e9fc119788a 100644 (file)
@@ -40,7 +40,8 @@ public:
     SketchPlugin_Sketch* theSketcher);
   DEFINE_STANDARD_RTTIEXT(SketcherPrs_Offset, SketcherPrs_SymbolPrs)
 
-    /// Returns true if the constraint feature arguments are correcly filled to build AIS presentation
+    /// Returns true if the constraint feature arguments are correcly
+    /// filled to build AIS presentation
     /// \param theConstraint a constraint feature
     /// \param thePlane a coordinate plane of current sketch
     /// \return boolean result value