diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-10-14 20:25:12 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-15 08:00:08 +0200 |
commit | 40ab4d8fda9b69b388ac674c1ee4e88084af9519 (patch) | |
tree | 4e793d89f6e5001cd8f43ead80ffa26a5798ac4e /unotools/source/misc | |
parent | 9ec8bf8f22fe74884185492ef2576ce79b41e4f1 (diff) |
Simplify containers iterations in unotools, unoxml, uui, vbahelper
Use range-based loop or replace with STL functions.
Change-Id: I5a43f6fc62c81453dcef3820bb715f4da76915af
Reviewed-on: https://gerrit.libreoffice.org/61762
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/misc')
-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; |