From bb4d0036dd0785056ab21fc237ec7fcc0870ae5f Mon Sep 17 00:00:00 2001 From: azv Date: Fri, 16 Aug 2019 08:59:18 +0300 Subject: [PATCH] Fix too long lines --- src/PartSet/PartSet_SketcherReentrantMgr.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/PartSet/PartSet_SketcherReentrantMgr.cpp b/src/PartSet/PartSet_SketcherReentrantMgr.cpp index cd95a10e4..3a003a708 100644 --- a/src/PartSet/PartSet_SketcherReentrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReentrantMgr.cpp @@ -842,10 +842,10 @@ void PartSet_SketcherReentrantMgr::addConstraints(const FeaturePtr& theFeature) if (theFeature->getKind() == SketchPlugin_Line::ID()) { std::shared_ptr aData = theFeature->data(); - std::shared_ptr aPoint1 = - std::dynamic_pointer_cast(aData->attribute(SketchPlugin_Line::START_ID())); - std::shared_ptr aPoint2 = - std::dynamic_pointer_cast(aData->attribute(SketchPlugin_Line::END_ID())); + std::shared_ptr aPoint1 = std::dynamic_pointer_cast( + aData->attribute(SketchPlugin_Line::START_ID())); + std::shared_ptr aPoint2 = std::dynamic_pointer_cast( + aData->attribute(SketchPlugin_Line::END_ID())); if (aPoint1.get() && aPoint2.get()) { GeomLine2dPtr aLine(new GeomAPI_Lin2d(aPoint1->pnt(), aPoint2->pnt())); GeomDir2dPtr aDir = aLine->direction(); @@ -866,8 +866,10 @@ void PartSet_SketcherReentrantMgr::addConstraints(const FeaturePtr& theFeature) // Add vertical constraint aFeature = aSketch->addFeature(SketchPlugin_ConstraintVertical::ID()); - if (aFeature.get()) - aFeature->refattr(SketchPlugin_Constraint::ENTITY_A())->setObject(theFeature->firstResult()); + if (aFeature.get()) { + aFeature->refattr(SketchPlugin_Constraint::ENTITY_A())->setObject( + theFeature->firstResult()); + } } } } -- 2.39.2