vcl/source/window/toolbox.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 32cfffbfc0eb0a2b37080bb0936097949b893001
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Feb 21 10:27:36 2021 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Feb 21 11:09:46 2021 +0100

    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.kagan...@collabora.com>

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;
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to