From 3d03f0a468e422229ddcfe95e8bf2dcb6c0bf4d5 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 19 Dec 2021 17:52:33 +0100 Subject: [PATCH] [PD] style improvements for Helix all done automatically by MSVC --- src/Mod/PartDesign/App/FeatureHelix.cpp | 2 +- .../PartDesign/Gui/TaskHelixParameters.cpp | 30 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureHelix.cpp b/src/Mod/PartDesign/App/FeatureHelix.cpp index ec92bb4fd7..0ca0189a51 100644 --- a/src/Mod/PartDesign/App/FeatureHelix.cpp +++ b/src/Mod/PartDesign/App/FeatureHelix.cpp @@ -519,7 +519,7 @@ double Helix::safePitch() if (startVec.Length() < Precision::Confusion()) { // when not in growth mode any pitch > 0 is safe if (mode != HelixMode::height_turns_growth) { - return Precision::Confusion(); + return Precision::Confusion(); } // if growth is not zero, there will in many cases be intersections // when the turn is >= 1, thus return an 'infinite' pitch diff --git a/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp b/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp index f4087b3640..57125b7246 100644 --- a/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp @@ -149,27 +149,27 @@ void TaskHelixParameters::connectSlots() QMetaObject::connectSlotsByName(this); connect(ui->pitch, SIGNAL(valueChanged(double)), - this, SLOT(onPitchChanged(double))); + this, SLOT(onPitchChanged(double))); connect(ui->height, SIGNAL(valueChanged(double)), - this, SLOT(onHeightChanged(double))); + this, SLOT(onHeightChanged(double))); connect(ui->turns, SIGNAL(valueChanged(double)), - this, SLOT(onTurnsChanged(double))); + this, SLOT(onTurnsChanged(double))); connect(ui->coneAngle, SIGNAL(valueChanged(double)), - this, SLOT(onAngleChanged(double))); + this, SLOT(onAngleChanged(double))); connect(ui->growth, SIGNAL(valueChanged(double)), - this, SLOT(onGrowthChanged(double))); + this, SLOT(onGrowthChanged(double))); connect(ui->axis, SIGNAL(activated(int)), - this, SLOT(onAxisChanged(int))); + this, SLOT(onAxisChanged(int))); connect(ui->checkBoxLeftHanded, SIGNAL(toggled(bool)), - this, SLOT(onLeftHandedChanged(bool))); + this, SLOT(onLeftHandedChanged(bool))); connect(ui->checkBoxReversed, SIGNAL(toggled(bool)), - this, SLOT(onReversedChanged(bool))); + this, SLOT(onReversedChanged(bool))); connect(ui->checkBoxUpdateView, SIGNAL(toggled(bool)), - this, SLOT(onUpdateView(bool))); + this, SLOT(onUpdateView(bool))); connect(ui->inputMode, SIGNAL(activated(int)), - this, SLOT(onModeChanged(int))); + this, SLOT(onModeChanged(int))); connect(ui->checkBoxOutside, SIGNAL(toggled(bool)), - this, SLOT(onOutsideChanged(bool))); + this, SLOT(onOutsideChanged(bool))); } void TaskHelixParameters::showCoordinateAxes() @@ -278,8 +278,8 @@ int TaskHelixParameters::addCurrentLink() } void TaskHelixParameters::addAxisToCombo(App::DocumentObject* linkObj, - std::string linkSubname, - QString itemText) + std::string linkSubname, + QString itemText) { this->ui->axis->addItem(itemText); this->axesInList.emplace_back(new App::PropertyLinkSub); @@ -426,8 +426,8 @@ void TaskHelixParameters::onAxisChanged(int num) if (lnk.getValue() == 0) { // enter reference selection mode TaskSketchBasedParameters::onSelectReference(AllowSelection::EDGE | - AllowSelection::PLANAR | - AllowSelection::CIRCLE); + AllowSelection::PLANAR | + AllowSelection::CIRCLE); return; } else {