From aef9c1a87bc7ca357d8dfe47c56ac5edc9935d35 Mon Sep 17 00:00:00 2001 From: azv Date: Sat, 1 Apr 2017 17:42:02 +0300 Subject: [PATCH] Fix to meet coding rules --- src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp | 3 ++- .../SketchSolver_ConstraintMultiTranslation.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp index 78bf3312e..e6c187069 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiRotation.cpp @@ -24,7 +24,8 @@ void SketchSolver_ConstraintMultiRotation::getAttributes( theAngle = aValueBuilder.createAttribute(anAngleAttr); myStorage->addEntity(anAngleAttr, theAngle); - AttributeRefAttrPtr aCenterAttr = myBaseConstraint->refattr(SketchPlugin_MultiRotation::CENTER_ID()); + AttributeRefAttrPtr aCenterAttr = + myBaseConstraint->refattr(SketchPlugin_MultiRotation::CENTER_ID()); if (!aCenterAttr || !aCenterAttr->isInitialized()) { myErrorMsg = SketchSolver_Error::NOT_INITIALIZED(); return; diff --git a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp index b05827b9d..2c56f810b 100644 --- a/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp +++ b/src/SketchSolver/SketchSolver_ConstraintMultiTranslation.cpp @@ -17,8 +17,10 @@ void SketchSolver_ConstraintMultiTranslation::getAttributes( bool& theFullValue, std::list& theEntities) { DataPtr aData = myBaseConstraint->data(); - AttributeRefAttrPtr aStartPointAttr = aData->refattr(SketchPlugin_MultiTranslation::START_POINT_ID()); - AttributeRefAttrPtr aEndPointAttr = aData->refattr(SketchPlugin_MultiTranslation::END_POINT_ID()); + AttributeRefAttrPtr aStartPointAttr = + aData->refattr(SketchPlugin_MultiTranslation::START_POINT_ID()); + AttributeRefAttrPtr aEndPointAttr = + aData->refattr(SketchPlugin_MultiTranslation::END_POINT_ID()); if (!aStartPointAttr || !aStartPointAttr->isInitialized() || !aEndPointAttr || !aEndPointAttr->isInitialized()) { myErrorMsg = SketchSolver_Error::NOT_INITIALIZED(); -- 2.39.2