diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-02-07 21:47:10 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-08 07:23:18 +0100 |
commit | d761be572b6a49dff64db47bbdda309e7b984f95 (patch) | |
tree | 16e859e0492caa55c2d85e13b7c7e20e837746df /sfx2/source/sidebar/Deck.cxx | |
parent | 7daa249981e0d0b69f4f7564bfb6bc643f375039 (diff) |
Use for-range loops in sfx2 (part2)
Change-Id: Ie13b5836eff2e9b5dfec4bb95935de9560ab4be0
Reviewed-on: https://gerrit.libreoffice.org/49393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/sidebar/Deck.cxx')
-rw-r--r-- | sfx2/source/sidebar/Deck.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index f1396cb38bea..ff736a4896a5 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -320,9 +320,9 @@ void Deck::ScrollContainerWindow::Paint(vcl::RenderContext& rRenderContext, cons const sal_Int32 nLeft(0); const sal_Int32 nRight(GetSizePixel().Width() - 1); const sfx2::sidebar::Paint& rHorizontalBorderPaint(Theme::GetPaint(Theme::Paint_HorizontalBorder)); - for (std::vector<sal_Int32>::const_iterator iY(maSeparators.begin()); iY != maSeparators.end(); ++iY) + for (auto const& separator : maSeparators) { - DrawHelper::DrawHorizontalLine(rRenderContext, nLeft, nRight, *iY, + DrawHelper::DrawHorizontalLine(rRenderContext, nLeft, nRight, separator, nSeparatorHeight, rHorizontalBorderPaint); } } |