diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 09:13:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-05-21 12:52:36 +0200 |
commit | 09c757cbdd3f973c97151203d8ff522141102da7 (patch) | |
tree | d1424cd2d3698965f847dc161c282ce1d00f9a94 /vcl/osx/salprn.cxx | |
parent | 22a4b7e621cbb6cab1d82d57c370e3cf33b4e74e (diff) |
use for-range on Sequence in testtools..xmloff
Change-Id: I05b02a2f8b4b9091c7de0f7e98409d5b608ed250
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94610
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/osx/salprn.cxx')
-rw-r--r-- | vcl/osx/salprn.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx index 9831bd24bd06..a1e5a0908b3b 100644 --- a/vcl/osx/salprn.cxx +++ b/vcl/osx/salprn.cxx @@ -334,12 +334,12 @@ static Size getPageSize( vcl::PrinterController const & i_rController, sal_Int32 { Size aPageSize; uno::Sequence< PropertyValue > aPageParms( i_rController.getPageParameters( i_nPage ) ); - for( sal_Int32 nProperty = 0, nPropertyCount = aPageParms.getLength(); nProperty < nPropertyCount; ++nProperty ) + for( const PropertyValue & pv : aPageParms ) { - if ( aPageParms[ nProperty ].Name == "PageSize" ) + if ( pv.Name == "PageSize" ) { awt::Size aSize; - aPageParms[ nProperty].Value >>= aSize; + pv.Value >>= aSize; aPageSize.setWidth( aSize.Width ); aPageSize.setHeight( aSize.Height ); break; |