summaryrefslogtreecommitdiff
path: root/vcl/source/font/PhysicalFontCollection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/font/PhysicalFontCollection.cxx')
-rw-r--r--vcl/source/font/PhysicalFontCollection.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx
index b58ce8503e14..9fd03b5dc683 100644
--- a/vcl/source/font/PhysicalFontCollection.cxx
+++ b/vcl/source/font/PhysicalFontCollection.cxx
@@ -907,9 +907,8 @@ std::unique_ptr<ImplDeviceFontSizeList> PhysicalFontCollection::GetDeviceFontSiz
std::set<int> rHeights;
pFontFamily->GetFontHeights( rHeights );
- std::set<int>::const_iterator it = rHeights.begin();
- for(; it != rHeights.begin(); ++it )
- pDeviceFontSizeList->Add( *it );
+ for( const auto& rHeight : rHeights )
+ pDeviceFontSizeList->Add( rHeight );
}
return pDeviceFontSizeList;