summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/pagecollector.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sdext/source/minimizer/pagecollector.cxx b/sdext/source/minimizer/pagecollector.cxx
index 3c59b12d04d7..874bbf0a9150 100644
--- a/sdext/source/minimizer/pagecollector.cxx
+++ b/sdext/source/minimizer/pagecollector.cxx
@@ -45,13 +45,11 @@ void PageCollector::CollectCustomShowPages( const css::uno::Reference< css::fram
{
// creating a list of every page that is used within our customshow
Sequence< OUString> aNameSeq( aXCont->getElementNames() );
- const OUString* pUString = aNameSeq.getArray();
- sal_Int32 i, nCount = aNameSeq.getLength();
- for ( i = 0; i < nCount; i++ )
+ for ( OUString const & i :aNameSeq )
{
- if ( pUString[ i ] == rCustomShowName )
+ if ( i == rCustomShowName )
{
- Reference< container::XIndexContainer > aXIC( aXCont->getByName( pUString[ i ] ), UNO_QUERY_THROW );
+ Reference< container::XIndexContainer > aXIC( aXCont->getByName( i ), UNO_QUERY_THROW );
sal_Int32 j, nSlideCount = aXIC->getCount();
for ( j = 0; j < nSlideCount; j++ )
{