summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-02-21 10:27:36 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-02-21 11:09:46 +0100
commit32cfffbfc0eb0a2b37080bb0936097949b893001 (patch)
treecf3eedd578e20711aa000bc8fce04999a016bf59
parent27c272797b4a90704c4d0b267d042f4d0837a153 (diff)
Use structured binding here for simplicity and clarity
Change-Id: I1da9fe46d72f9b274022d28667b2244cb0824131 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111190 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-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;
}