Sandbox: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 13:24:46 -05:00
parent 9081a6364d
commit bfcc772817
2 changed files with 6 additions and 3 deletions

View File

@@ -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?"),

View File

@@ -169,7 +169,8 @@ void SoWidgetShape::GLRender(SoGLRenderAction * /*action*/)
void SoWidgetShape::computeBBox(SoAction *action, SbBox3f &box, SbVec3f &center)
{
// 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();