diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-13 11:10:54 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-13 13:15:03 +0200 |
commit | cd79d5caf67d1769cd1bdea6f4ae26810d27ebc0 (patch) | |
tree | 0f1d394dac0b72b66a0c58cfbed8c5a635405652 /filter | |
parent | Reduce scope of variable (diff) | |
download | core-cd79d5caf67d1769cd1bdea6f4ae26810d27ebc0.tar.gz core-cd79d5caf67d1769cd1bdea6f4ae26810d27ebc0.zip |
Reduce scope of variable
Change-Id: Ifa8cf3fcb7b33ffb03ef89d2f88cf4ab8287e43f
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index bac0395891ad..d01b8ed63039 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -1506,10 +1506,10 @@ SdrPowerPointImport::SdrPowerPointImport( PowerPointImportParam& rParam, const O pE->bStarDrawFiller = true; // this is a dummy master page m_pMasterPages->insert(m_pMasterPages->begin(), std::move(pE)); - sal_uInt16 nPageListNum = 0; DffRecordHeader* pSlideListWithTextHd = aDocRecManager.GetRecordHeader( PPT_PST_SlideListWithText ); PptSlidePersistEntry* pPreviousPersist = NULL; - while ( pSlideListWithTextHd && ( nPageListNum < 3 ) ) + for (sal_uInt16 nPageListNum = 0; + pSlideListWithTextHd && nPageListNum < 3; ++nPageListNum) { pSlideListWithTextHd->SeekToContent( rStCtrl ); PptSlidePersistList* pPageList = GetPageList( PptPageKind( nPageListNum ) ); @@ -1528,7 +1528,6 @@ SdrPowerPointImport::SdrPowerPointImport( PowerPointImportParam& rParam, const O if ( pPreviousPersist ) pPreviousPersist->nSlidePersistEndOffset = nSlideListWithTextHdEndOffset; pSlideListWithTextHd = aDocRecManager.GetRecordHeader( PPT_PST_SlideListWithText, SEEK_FROM_CURRENT ); - nPageListNum++; } // we will ensure that there is at least one master page @@ -1556,8 +1555,7 @@ SdrPowerPointImport::SdrPowerPointImport( PowerPointImportParam& rParam, const O } // read for each page the SlideAtom respectively the NotesAtom if it exists - nPageListNum = 0; - for ( nPageListNum = 0; nPageListNum < 3; nPageListNum++ ) + for (sal_uInt16 nPageListNum = 0; nPageListNum < 3; ++nPageListNum) { PptSlidePersistList* pPageList = GetPageList( PptPageKind( nPageListNum ) ); for ( size_t nPageNum = 0; nPageNum < pPageList->size(); nPageNum++ ) |