diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-26 22:59:32 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-27 07:14:58 +0200 |
commit | 98895a5fd21125e41c423d3af318d9f082e83df4 (patch) | |
tree | ac940e87406e75873da0085a92e2d01eb26fddb8 /ucb | |
parent | ba9f44d6ee560bbba09834b1070d19ec62d35783 (diff) |
Replace list by vector in ucbstore (ucb)
Change-Id: I1ff394ecd1fe805d671d666d8bc2522c33c40b50
Reviewed-on: https://gerrit.libreoffice.org/43922
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucbstore.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx index 62e154b9553c..6c2cbeaad3c8 100644 --- a/ucb/source/core/ucbstore.cxx +++ b/ucb/source/core/ucbstore.cxx @@ -1890,8 +1890,7 @@ void SAL_CALL PersistentPropertySet::setPropertyValues( { const PropertyValue* pNewValues = aProps.getConstArray(); - typedef std::list< PropertyChangeEvent > Events; - Events aEvents; + std::vector< PropertyChangeEvent > aEvents; OUString aFullPropNamePrefix( getFullKey() ); aFullPropNamePrefix += "/"; @@ -1980,13 +1979,9 @@ void SAL_CALL PersistentPropertySet::setPropertyValues( if ( m_pImpl->m_pPropertyChangeListeners ) { // Notify property changes. - Events::const_iterator it = aEvents.begin(); - Events::const_iterator end = aEvents.end(); - - while ( it != end ) + for (auto const& event : aEvents) { - notifyPropertyChangeEvent( *it ); - ++it; + notifyPropertyChangeEvent( event ); } } |