Use a range-based for loop
Change-Id: Id3c358e0a7f11a4a203b1acbd42b9b09c7f7a2fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135193 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
66500b5041
commit
3a06db0af0
1 changed files with 6 additions and 6 deletions
|
@ -465,11 +465,11 @@ PointerStyles const styles[] = {
|
|||
static tools::Long lcl_loPointerToMsoPointer( PointerStyle eType )
|
||||
{
|
||||
tools::Long nRet = msforms::fmMousePointer::fmMousePointerDefault;
|
||||
for ( int i = 0; i < int(SAL_N_ELEMENTS( styles )); ++i )
|
||||
for ( auto const & i: styles )
|
||||
{
|
||||
if ( styles[ i ].loPointStyle == eType )
|
||||
if ( i.loPointStyle == eType )
|
||||
{
|
||||
nRet = styles[ i ].msoPointerStyle;
|
||||
nRet = i.msoPointerStyle;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -479,11 +479,11 @@ static tools::Long lcl_loPointerToMsoPointer( PointerStyle eType )
|
|||
static PointerStyle lcl_msoPointerToLOPointer( tools::Long msoPointerStyle )
|
||||
{
|
||||
PointerStyle aPointer( PointerStyle::Arrow );
|
||||
for ( int i = 0; i < int(SAL_N_ELEMENTS( styles )); ++i )
|
||||
for ( auto const & i: styles )
|
||||
{
|
||||
if ( styles[ i ].msoPointerStyle == msoPointerStyle )
|
||||
if ( i.msoPointerStyle == msoPointerStyle )
|
||||
{
|
||||
aPointer = styles[ i ].loPointStyle;
|
||||
aPointer = i.loPointStyle;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue