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
diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx
index 58236ff..bb811e1 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;
    }