Gui: PR6497 move return statement to new line

This commit is contained in:
Chris Hennes
2022-03-29 12:33:50 -05:00
parent f7edc74eee
commit 5df3dbae6f
57 changed files with 352 additions and 169 deletions

View File

@@ -219,7 +219,8 @@ void Placement::revertTransformation()
void Placement::applyPlacement(const Base::Placement& p, bool incremental)
{
Gui::Document* document = Application::Instance->activeDocument();
if (!document) return;
if (!document)
return;
std::vector<App::DocumentObject*> sel = Gui::Selection().getObjectsOfType
(App::DocumentObject::getClassTypeId(), document->getDocument()->getName());
@@ -257,7 +258,8 @@ void Placement::applyPlacement(const Base::Placement& p, bool incremental)
void Placement::applyPlacement(const QString& data, bool incremental)
{
Gui::Document* document = Application::Instance->activeDocument();
if (!document) return;
if (!document)
return;
// When directly changing the property we now only have to commit the transaction,
// do a recompute and open a new transaction