diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-12-13 00:42:49 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-13 18:07:25 +0100 |
commit | 0f0f8bdc3e5c1534d608f8475d9d3e3df4faddaa (patch) | |
tree | ddeb138aafb32e64b7e065406359a79c2d12c4ff /sd/source/ui/func/fuprlout.cxx | |
parent | 3e06873d124c9f8f4cd2e5f5d619de3c99ca09bf (diff) |
Simplify containers iterations in sd/source/ui/[a-r]*
Use range-based loop or replace with STL functions
Change-Id: I063dc78205a4cd982c252a9b62c456e9660b8790
Reviewed-on: https://gerrit.libreoffice.org/65063
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/func/fuprlout.cxx')
-rw-r--r-- | sd/source/ui/func/fuprlout.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuprlout.cxx b/sd/source/ui/func/fuprlout.cxx index 5cea52322ca9..9f33a572bd84 100644 --- a/sd/source/ui/func/fuprlout.cxx +++ b/sd/source/ui/func/fuprlout.cxx @@ -108,9 +108,8 @@ void FuPresentationLayout::DoExecute( SfxRequest& rReq ) pSlideSorterViewShell->GetPageSelection()); if (xSelection) { - for (auto it = xSelection->begin(); it != xSelection->end(); ++it) + for (SdPage *pPage : *xSelection) { - SdPage *pPage = *it; if (pPage->IsSelected() || pPage->GetPageKind() != PageKind::Standard) continue; mpDoc->SetSelected(pPage, true); |