From b2789486810cd4f9484e4e40cd0f2dc6d7c7b00f Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 28 Apr 2017 18:04:15 +0300 Subject: [PATCH] Meet the coding style (line length <= 100) --- src/ModelAPI/ModelAPI_Events.cpp | 6 ++++-- src/SketchSolver/SketchSolver_ConstraintMovement.cpp | 3 ++- src/SketchSolver/SketchSolver_ConstraintMovement.h | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ModelAPI/ModelAPI_Events.cpp b/src/ModelAPI/ModelAPI_Events.cpp index 2a4665d4b..1224934af 100644 --- a/src/ModelAPI/ModelAPI_Events.cpp +++ b/src/ModelAPI/ModelAPI_Events.cpp @@ -354,7 +354,8 @@ void ModelAPI_ObjectMovedMessage::setOriginalPosition(double theX, double theY) myOriginalPosition = std::shared_ptr(new GeomAPI_Pnt2d(theX, theY)); } -void ModelAPI_ObjectMovedMessage::setOriginalPosition(const std::shared_ptr& thePoint) +void ModelAPI_ObjectMovedMessage::setOriginalPosition( + const std::shared_ptr& thePoint) { myOriginalPosition = thePoint; } @@ -364,7 +365,8 @@ void ModelAPI_ObjectMovedMessage::setCurrentPosition(double theX, double theY) myCurrentPosition = std::shared_ptr(new GeomAPI_Pnt2d(theX, theY)); } -void ModelAPI_ObjectMovedMessage::setCurrentPosition(const std::shared_ptr& thePoint) +void ModelAPI_ObjectMovedMessage::setCurrentPosition( + const std::shared_ptr& thePoint) { myCurrentPosition = thePoint; } diff --git a/src/SketchSolver/SketchSolver_ConstraintMovement.cpp b/src/SketchSolver/SketchSolver_ConstraintMovement.cpp index 59dcac14a..850a8c92d 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMovement.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMovement.cpp @@ -67,7 +67,8 @@ EntityWrapperPtr SketchSolver_ConstraintMovement::entityToFix() return myStorage->entity(myMovedFeature); } -void SketchSolver_ConstraintMovement::moveTo(const std::shared_ptr& theDestinationPoint) +void SketchSolver_ConstraintMovement::moveTo( + const std::shared_ptr& theDestinationPoint) { #ifdef SUPPORT_NEW_MOVE EntityWrapperPtr aMovedEntity = myStorage->entity(myMovedFeature); diff --git a/src/SketchSolver/SketchSolver_ConstraintMovement.h b/src/SketchSolver/SketchSolver_ConstraintMovement.h index 42d3f3982..59fa2a198 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMovement.h +++ b/src/SketchSolver/SketchSolver_ConstraintMovement.h @@ -47,7 +47,7 @@ protected: virtual EntityWrapperPtr entityToFix(); private: - FeaturePtr myMovedFeature; ///< fixed feature (when it is set, myBaseConstraint should be NULL) + FeaturePtr myMovedFeature; ///< fixed feature (if set, myBaseConstraint should be NULL) AttributePtr myDraggedPoint; ///< one of the feature points which has been moved std::shared_ptr myStartPoint; ///< start point of the movement }; -- 2.39.2