diff options
Diffstat (limited to 'svtools/source/control/calendar.cxx')
-rw-r--r-- | svtools/source/control/calendar.cxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index 12a9fb1c3dab..c63e3ecf82de 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -824,23 +824,21 @@ void Calendar::ImplUpdateSelection( IntDateSet* pOld ) { IntDateSet* pNew = mpSelectTable; - for ( IntDateSet::const_iterator it = pOld->begin(); it != pOld->end(); ++it ) + for (auto const& nKey : *pOld) { - sal_Int32 nKey = *it; - if ( pNew->find( nKey ) == pNew->end() ) + if ( pNew->find(nKey) == pNew->end() ) { - Date aTempDate( nKey ); - ImplUpdateDate( aTempDate ); + Date aTempDate(nKey); + ImplUpdateDate(aTempDate); } } - for ( IntDateSet::const_iterator it = pNew->begin(); it != pNew->end(); ++it ) + for (auto const& nKey : *pNew) { - sal_Int32 nKey = *it; - if ( pOld->find( nKey ) == pOld->end() ) + if ( pOld->find(nKey) == pOld->end() ) { - Date aTempDate( nKey ); - ImplUpdateDate( aTempDate ); + Date aTempDate(nKey); + ImplUpdateDate(aTempDate); } } } |