diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-06-26 00:37:36 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-06-26 09:29:25 +0200 |
commit | 20c4a9ce69e73a182d60718e9b52510d66c8f20e (patch) | |
tree | dde947221cfa9d662156416f01c0e4cbf4614c04 /sdext | |
parent | aecd51754ec00faef7ad8f742d5e3cdbab470436 (diff) |
tdf#96099 Remove some trivial container iterator typedefs
Change-Id: Ifec98748d55ff6aca64c425c50c2cf2650f61591
Reviewed-on: https://gerrit.libreoffice.org/56422
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/pagecollector.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sdext/source/minimizer/pagecollector.cxx b/sdext/source/minimizer/pagecollector.cxx index 874bbf0a9150..ca634e560a76 100644 --- a/sdext/source/minimizer/pagecollector.cxx +++ b/sdext/source/minimizer/pagecollector.cxx @@ -109,9 +109,6 @@ void PageCollector::CollectNonCustomShowPages( const css::uno::Reference< css::f void PageCollector::CollectMasterPages( const Reference< XModel >& rxModel, std::vector< PageCollector::MasterPageEntity >& rMasterPageList ) { - typedef std::vector< MasterPageEntity > MasterPageList; - typedef MasterPageList::iterator MasterPageIter; - try { // generating list of all master pages @@ -120,8 +117,8 @@ void PageCollector::CollectMasterPages( const Reference< XModel >& rxModel, std: for ( sal_Int32 i = 0; i < xMasterPages->getCount(); i++ ) { Reference< XDrawPage > xMasterPage( xMasterPages->getByIndex( i ), UNO_QUERY_THROW ); - MasterPageIter aIter( rMasterPageList.begin() ); - MasterPageIter aEnd ( rMasterPageList.end() ); + auto aIter( rMasterPageList.begin() ); + auto aEnd ( rMasterPageList.end() ); while( aIter != aEnd ) { if ( aIter->xMasterPage == xMasterPage ) @@ -144,8 +141,8 @@ void PageCollector::CollectMasterPages( const Reference< XModel >& rxModel, std: { Reference< XMasterPageTarget > xMasterPageTarget( xDrawPages->getByIndex( j ), UNO_QUERY_THROW ); Reference< XDrawPage > xMasterPage( xMasterPageTarget->getMasterPage(), UNO_QUERY_THROW ); - MasterPageIter aIter( rMasterPageList.begin() ); - MasterPageIter aEnd ( rMasterPageList.end() ); + auto aIter( rMasterPageList.begin() ); + auto aEnd ( rMasterPageList.end() ); while( aIter != aEnd ) { if ( aIter->xMasterPage == xMasterPage ) |