summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-07-01 12:05:27 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-02 09:58:06 +0200
commit72ef986133be94fd872ceaef57f3e0ffd7a538d8 (patch)
tree6758cccbd503ad000bc1d75263856868fff227cf /vcl/source/control
parent99d45ab7275af130485e52f71abaf7f72fd1239a (diff)
tdf#161853 vcl: Use range-based for
Change-Id: I69824a42b74071678c2c8f102fff78453e1718de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169796 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/imivctl1.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx
index 58236ff35e29..bb811e187d1a 100644
--- a/vcl/source/control/imivctl1.cxx
+++ b/vcl/source/control/imivctl1.cxx
@@ -2372,10 +2372,8 @@ void SvxIconChoiceCtrl_Impl::SelectRange(
bool SvxIconChoiceCtrl_Impl::IsOver(const std::vector<tools::Rectangle>& rRects, const tools::Rectangle& rBoundRect)
{
- const sal_uInt16 nCount = rRects.size();
- for( sal_uInt16 nCur = 0; nCur < nCount; nCur++ )
+ for (const tools::Rectangle& rRect : rRects)
{
- const tools::Rectangle& rRect = rRects[ nCur ];
if( rBoundRect.Overlaps( rRect ))
return true;
}