sw/source/ui/vba/vbafont.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 5dd2ef5c783d9079bc70e7b07aea0178a31f4fc2 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue May 31 15:37:30 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue May 31 18:52:21 2022 +0200 Use a range-based for loop Change-Id: I52bfe8ec1e7ca55964f2ed3aadcc709dba3662c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135192 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/source/ui/vba/vbafont.cxx b/sw/source/ui/vba/vbafont.cxx index 6a6442544a0e..c36efb4c471f 100644 --- a/sw/source/ui/vba/vbafont.cxx +++ b/sw/source/ui/vba/vbafont.cxx @@ -73,10 +73,10 @@ class UnderLineMapper private: UnderLineMapper() { - for ( sal_Int32 index=0; index<sal_Int32(SAL_N_ELEMENTS( UnderLineTable )); ++index ) + for ( auto const & index: UnderLineTable ) { - MSO2OOO[ UnderLineTable[ index ].nMSOConst ] = UnderLineTable[ index ].nOOOConst; - OOO2MSO[ UnderLineTable[ index ].nOOOConst ] = UnderLineTable[ index ].nMSOConst; + MSO2OOO[ index.nMSOConst ] = index.nOOOConst; + OOO2MSO[ index.nOOOConst ] = index.nMSOConst; } } public: