diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-30 18:09:43 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-30 18:23:37 +0100 |
commit | a6aaee2e39426cea7daa3df6c75feaebd6a8c869 (patch) | |
tree | d0c64e5c00d0d4f9b3d4385a5a41757e69964a7c /svtools | |
parent | 0a7c31d2a296ae8898c73777d2edbfb4e8772c7d (diff) |
Prefer prefix ++/-- operators for non-primitive types
Change-Id: I7b3fb6f5c8b4dfed5ff225edecfe41d85a6f621d
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueacc.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index 0df398ece368..0a7273f6cb42 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -91,7 +91,6 @@ void ValueSetAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue if( nEventId ) { ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > > aTmpListeners( mxEventListeners ); - ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::const_iterator aIter( aTmpListeners.begin() ); accessibility::AccessibleEventObject aEvtObject; aEvtObject.EventId = nEventId; @@ -99,7 +98,8 @@ void ValueSetAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue aEvtObject.NewValue = rNewValue; aEvtObject.OldValue = rOldValue; - while( aIter != aTmpListeners.end() ) + for (::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::const_iterator aIter( aTmpListeners.begin() ); + aIter != aTmpListeners.end() ; ++aIter) { try { @@ -108,8 +108,6 @@ void ValueSetAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue catch(const uno::Exception&) { } - - aIter++; } } } @@ -790,7 +788,6 @@ void ValueItemAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValu if( nEventId ) { ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > > aTmpListeners( mxEventListeners ); - ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::const_iterator aIter( aTmpListeners.begin() ); accessibility::AccessibleEventObject aEvtObject; aEvtObject.EventId = nEventId; @@ -798,10 +795,10 @@ void ValueItemAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValu aEvtObject.NewValue = rNewValue; aEvtObject.OldValue = rOldValue; - while( aIter != aTmpListeners.end() ) + for (::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::const_iterator aIter( aTmpListeners.begin() ); + aIter != aTmpListeners.end() ; ++aIter) { (*aIter)->notifyEvent( aEvtObject ); - aIter++; } } } |