[Libreoffice-commits] core.git: vcl/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Sun Feb 21 10:10:27 UTC 2021
vcl/source/window/toolbox.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 32cfffbfc0eb0a2b37080bb0936097949b893001
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Feb 21 10:27:36 2021 +0100
Commit: Mike Kaganski <mike.kaganski at 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.kaganski at 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;
}
More information about the Libreoffice-commits
mailing list