diff options
Diffstat (limited to 'unotools/source/misc/fontdefs.cxx')
-rw-r--r-- | unotools/source/misc/fontdefs.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx index 67f4d73a3fc3..be391cb82a5a 100644 --- a/unotools/source/misc/fontdefs.cxx +++ b/unotools/source/misc/fontdefs.cxx @@ -549,10 +549,10 @@ OUString GetSubsFontName( const OUString& rName, SubsFontFlags nFlags ) } if( ! pVector ) continue; - for( ::std::vector< OUString >::const_iterator it = pVector->begin(); it != pVector->end(); ++it ) - if( ! ImplIsFontToken( rName, *it ) ) + for( const auto& rSubstitution : *pVector ) + if( ! ImplIsFontToken( rName, rSubstitution ) ) { - ImplAppendFontToken( aName, *it ); + ImplAppendFontToken( aName, rSubstitution ); if( nFlags & SubsFontFlags::ONLYONE ) { i = 4; |