extensions/source/activex/SODispatchInterceptor.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 08a63a88543b0da68380090b655e777bd2b980be
Author:     PoonamShokeen <poonamshoke...@gmail.com>
AuthorDate: Wed Jul 27 12:24:51 2022 -0500
Commit:     Hossein <hoss...@libreoffice.org>
CommitDate: Fri Aug 26 22:37:43 2022 +0200

    tdf#145538 Use range based for loops
    
    Change-Id: I144d020c6c57937caa800f019ab175597ed8ede4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137538
    Tested-by: Jenkins
    Reviewed-by: Hossein <hoss...@libreoffice.org>

diff --git a/extensions/source/activex/SODispatchInterceptor.cxx 
b/extensions/source/activex/SODispatchInterceptor.cxx
index adffa93fa64c..14c42a774393 100644
--- a/extensions/source/activex/SODispatchInterceptor.cxx
+++ b/extensions/source/activex/SODispatchInterceptor.cxx
@@ -46,9 +46,9 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP 
SODispatchInterceptor::InterfaceSupportsErrorI
         &IID_ISODispatchInterceptor,
     };
 
-    for (std::size_t i=0;i<SAL_N_ELEMENTS(arr);i++)
+    for (auto const &i : arr)
     {
-        if (InlineIsEqualGUID(*arr[i],riid))
+        if (InlineIsEqualGUID(*i,riid))
             return S_OK;
     }
     return S_FALSE;

Reply via email to