summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/toolbox.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 86199a5b6c4a..49f7765a7b01 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -4046,12 +4046,8 @@ Size ToolBox::GetOptimalSize() const
Size aSize(const_cast<ToolBox *>(this)->ImplCalcSize( mnLines ));
- for (auto const& expandable : aExpandables)
- {
- vcl::Window *pWindow = expandable.first;
- Size aWinSize = expandable.second;
+ for (auto const& [pWindow, aWinSize] : aExpandables)
pWindow->SetSizePixel(aWinSize);
- }
return aSize;
}