summaryrefslogtreecommitdiff
path: root/vcl/osx/salprn.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/osx/salprn.cxx')
-rw-r--r--vcl/osx/salprn.cxx6
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;