From bfcc772817ded82c6db82f969683092a6923e8f9 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Tue, 29 Mar 2022 13:24:46 -0500 Subject: [PATCH] Sandbox: PR6497 move return statement to new line --- src/Mod/Sandbox/Gui/Command.cpp | 3 ++- src/Mod/Sandbox/Gui/Workbench.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sandbox/Gui/Command.cpp b/src/Mod/Sandbox/Gui/Command.cpp index 64d3cf8d04..6c87a31499 100644 --- a/src/Mod/Sandbox/Gui/Command.cpp +++ b/src/Mod/Sandbox/Gui/Command.cpp @@ -1380,7 +1380,8 @@ void CmdMengerSponge::activated(int) QString::fromLatin1("Menger sponge"), QString::fromLatin1("Recursion depth:"), 3, 1, 5, 1, &ok); - if (!ok) return; + if (!ok) + return; int ret = QMessageBox::question(Gui::getMainWindow(), QString::fromLatin1("Parallel"), QString::fromLatin1("Do you want to run this in a thread pool?"), diff --git a/src/Mod/Sandbox/Gui/Workbench.cpp b/src/Mod/Sandbox/Gui/Workbench.cpp index d205e26746..2aaccb2a1f 100644 --- a/src/Mod/Sandbox/Gui/Workbench.cpp +++ b/src/Mod/Sandbox/Gui/Workbench.cpp @@ -169,7 +169,8 @@ void SoWidgetShape::GLRender(SoGLRenderAction * /*action*/) void SoWidgetShape::computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er) { // ignore if node is empty - if (this->image.isNull()) return; + if (this->image.isNull()) + return; SbVec3f v0, v1, v2, v3; // this will cause a cache dependency on the view volume, @@ -237,7 +238,8 @@ SoWidgetShape::getQuad(SoState * state, SbVec3f & v0, SbVec3f & v1, void SoWidgetShape::generatePrimitives(SoAction *action) { - if (this->image.isNull()) return; + if (this->image.isNull()) + return; SoState *state = action->getState(); state->push();