summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorPoonamShokeen <poonamshokeen7@gmail.com>2022-07-27 12:24:51 -0500
committerHossein <hossein@libreoffice.org>2022-08-26 22:37:43 +0200
commit08a63a88543b0da68380090b655e777bd2b980be (patch)
tree113d57d9e1ce458121025ea905f6db016bd4ccb8 /extensions
parente6bed4293814dd58f0a7d050e8057e717d03faab (diff)
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 <hossein@libreoffice.org>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/activex/SODispatchInterceptor.cxx4
1 files changed, 2 insertions, 2 deletions
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;