diff options
author | PoonamShokeen <poonamshokeen7@gmail.com> | 2022-07-27 12:24:51 -0500 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2022-08-26 22:37:43 +0200 |
commit | 08a63a88543b0da68380090b655e777bd2b980be (patch) | |
tree | 113d57d9e1ce458121025ea905f6db016bd4ccb8 /extensions/source/activex/SODispatchInterceptor.cxx | |
parent | e6bed4293814dd58f0a7d050e8057e717d03faab (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/source/activex/SODispatchInterceptor.cxx')
-rw-r--r-- | extensions/source/activex/SODispatchInterceptor.cxx | 4 |
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; |