diff --git a/GUI/View/Sample/SampleForm.cpp b/GUI/View/Sample/SampleForm.cpp
index b93d12dc2a59d80215c04499350f7e7e4004cd76..36ead1e7f728096f5a28188fef8e6aac528cb43b 100644
--- a/GUI/View/Sample/SampleForm.cpp
+++ b/GUI/View/Sample/SampleForm.cpp
@@ -182,9 +182,8 @@ void SampleForm::onAboutToRemoveLayer(LayerItem* layerItem)
 
 void SampleForm::updateRowVisibilities()
 {
-    for (auto* c : findChildren<LayerForm*>()) {
+    for (auto* c : findChildren<LayerForm*>())
         c->updateLayerPositionDependentElements();
-    }
 }
 
 LayerForm* SampleForm::findNextLayerForm(QWidget* w)