diff --git a/src/Gui/Inventor/SoAutoZoomTranslation.cpp b/src/Gui/Inventor/SoAutoZoomTranslation.cpp index fb76513b18..f708597243 100644 --- a/src/Gui/Inventor/SoAutoZoomTranslation.cpp +++ b/src/Gui/Inventor/SoAutoZoomTranslation.cpp @@ -94,7 +94,7 @@ void SoAutoZoomTranslation::doAction(SoAction * action) auto state = action->getState(); SbRotation r,so; SbVec3f s,t; - SbMatrix matrix = SoModelMatrixElement::get(action->getState()); + SbMatrix matrix = SoModelMatrixElement::get(action->getState()); // clazy:exclude=rule-of-two-soft matrix.getTransform(t,r,s,so); matrix.multVecMatrix(SbVec3f(0,0,0),t); // reset current model scale factor diff --git a/src/Gui/Quarter/QuarterWidget.cpp b/src/Gui/Quarter/QuarterWidget.cpp index 1f2f08fd6a..fb00de28c5 100644 --- a/src/Gui/Quarter/QuarterWidget.cpp +++ b/src/Gui/Quarter/QuarterWidget.cpp @@ -684,7 +684,7 @@ QuarterWidget::setSoRenderManager(SoRenderManager * manager) if (PRIVATE(this)->sorendermanager && manager) { scene = PRIVATE(this)->sorendermanager->getSceneGraph(); camera = PRIVATE(this)->sorendermanager->getCamera(); - vp = PRIVATE(this)->sorendermanager->getViewportRegion(); + vp = PRIVATE(this)->sorendermanager->getViewportRegion(); // clazy:exclude=rule-of-two-soft carrydata = true; } @@ -729,7 +729,7 @@ QuarterWidget::setSoEventManager(SoEventManager * manager) if (PRIVATE(this)->soeventmanager && manager) { scene = PRIVATE(this)->soeventmanager->getSceneGraph(); camera = PRIVATE(this)->soeventmanager->getCamera(); - vp = PRIVATE(this)->soeventmanager->getViewportRegion(); + vp = PRIVATE(this)->soeventmanager->getViewportRegion(); // clazy:exclude=rule-of-two-soft carrydata = true; } diff --git a/src/Gui/SoFCCSysDragger.cpp b/src/Gui/SoFCCSysDragger.cpp index 683026083c..27a3a1c8ca 100644 --- a/src/Gui/SoFCCSysDragger.cpp +++ b/src/Gui/SoFCCSysDragger.cpp @@ -216,7 +216,7 @@ void TDragger::fieldSensorCB(void *f, SoSensor *) { TDragger *sudoThis = static_cast(f); - SbMatrix matrix = sudoThis->getMotionMatrix(); + SbMatrix matrix = sudoThis->getMotionMatrix(); // clazy:exclude=rule-of-two-soft sudoThis->workFieldsIntoTransform(matrix); sudoThis->setMotionMatrix(matrix); } @@ -225,7 +225,7 @@ void TDragger::valueChangedCB(void *, SoDragger *d) { TDragger *sudoThis = dynamic_cast(d); assert(sudoThis); - SbMatrix matrix = sudoThis->getMotionMatrix(); + SbMatrix matrix = sudoThis->getMotionMatrix(); // clazy:exclude=rule-of-two-soft //all this just to get the translation? SbVec3f trans, scaleDummy; @@ -488,7 +488,7 @@ void RDragger::fieldSensorCB(void *f, SoSensor *) { RDragger *sudoThis = static_cast(f); - SbMatrix matrix = sudoThis->getMotionMatrix(); + SbMatrix matrix = sudoThis->getMotionMatrix(); // clazy:exclude=rule-of-two-soft sudoThis->workFieldsIntoTransform(matrix); sudoThis->setMotionMatrix(matrix); } @@ -497,7 +497,7 @@ void RDragger::valueChangedCB(void *, SoDragger *d) { RDragger *sudoThis = dynamic_cast(d); assert(sudoThis); - SbMatrix matrix = sudoThis->getMotionMatrix(); + SbMatrix matrix = sudoThis->getMotionMatrix(); // clazy:exclude=rule-of-two-soft //all this just to get the translation? SbVec3f translationDummy, scaleDummy; @@ -870,7 +870,7 @@ void SoFCCSysDragger::translationSensorCB(void *f, SoSensor *) { SoFCCSysDragger *sudoThis = static_cast(f); - SbMatrix matrix = sudoThis->getMotionMatrix(); + SbMatrix matrix = sudoThis->getMotionMatrix(); // clazy:exclude=rule-of-two-soft sudoThis->workFieldsIntoTransform(matrix); sudoThis->setMotionMatrix(matrix); } @@ -879,7 +879,7 @@ void SoFCCSysDragger::rotationSensorCB(void *f, SoSensor *) { SoFCCSysDragger *sudoThis = static_cast(f); - SbMatrix matrix = sudoThis->getMotionMatrix(); + SbMatrix matrix = sudoThis->getMotionMatrix(); // clazy:exclude=rule-of-two-soft sudoThis->workFieldsIntoTransform(matrix); sudoThis->setMotionMatrix(matrix); } @@ -888,7 +888,7 @@ void SoFCCSysDragger::valueChangedCB(void *, SoDragger *d) { SoFCCSysDragger *sudoThis = dynamic_cast(d); assert(sudoThis); - SbMatrix matrix = sudoThis->getMotionMatrix(); + SbMatrix matrix = sudoThis->getMotionMatrix(); // clazy:exclude=rule-of-two-soft //all this just to get the translation? SbVec3f localTranslation, scaleDummy; diff --git a/src/Gui/SoFCOffscreenRenderer.cpp b/src/Gui/SoFCOffscreenRenderer.cpp index d5f1a02e77..dde06d2211 100644 --- a/src/Gui/SoFCOffscreenRenderer.cpp +++ b/src/Gui/SoFCOffscreenRenderer.cpp @@ -423,7 +423,7 @@ void SoQtOffscreenRenderer::init(const SbViewportRegion & vpr, } this->didallocation = glrenderaction ? false : true; - this->viewport = vpr; + this->viewport = vpr; // clazy:exclude=rule-of-two-soft this->framebuffer = nullptr; this->numSamples = -1; @@ -473,7 +473,7 @@ SoQtOffscreenRenderer::~SoQtOffscreenRenderer() void SoQtOffscreenRenderer::setViewportRegion(const SbViewportRegion & region) { - PRIVATE(this)->viewport = region; + PRIVATE(this)->viewport = region; // clazy:exclude=rule-of-two-soft } /*! diff --git a/src/Gui/SoFCSelectionAction.cpp b/src/Gui/SoFCSelectionAction.cpp index 45e7455426..457df0af6e 100644 --- a/src/Gui/SoFCSelectionAction.cpp +++ b/src/Gui/SoFCSelectionAction.cpp @@ -1063,7 +1063,7 @@ SoBoxSelectionRenderActionP::updateBbox(const SoPath * path) this->cube->height = y; this->cube->depth = z; - SbMatrix transform = box.getTransform(); + SbMatrix transform = box.getTransform(); // clazy:exclude=rule-of-two-soft // get center (in the local bbox coordinate system) SbVec3f center = box.SbBox3f::getCenter(); diff --git a/src/Gui/SoNavigationDragger.cpp b/src/Gui/SoNavigationDragger.cpp index 86a172c1f6..f2556dbeb9 100644 --- a/src/Gui/SoNavigationDragger.cpp +++ b/src/Gui/SoNavigationDragger.cpp @@ -334,7 +334,7 @@ RotTransDragger::valueChangedCB(void *, SoDragger *inDragger) RotTransDragger *myself = (RotTransDragger *) inDragger; // Factor the motionMatrix into its parts - SbMatrix motMat = myself->getMotionMatrix(); + SbMatrix motMat = myself->getMotionMatrix(); // clazy:exclude=rule-of-two-soft SbVec3f trans, scale; SbRotation rot, scaleOrient; motMat.getTransform(trans, rot, scale, scaleOrient); @@ -357,7 +357,7 @@ RotTransDragger::fieldSensorCB(void *inDragger, SoSensor *) { RotTransDragger *myself = (RotTransDragger *) inDragger; - SbMatrix motMat = myself->getMotionMatrix(); + SbMatrix motMat = myself->getMotionMatrix(); // clazy:exclude=rule-of-two-soft myself->workFieldsIntoTransform(motMat); myself->setMotionMatrix(motMat);