[Libreoffice-commits] core.git: ucb/source

Julien Nabet serval2412 at yahoo.fr
Fri Oct 27 05:15:18 UTC 2017


 ucb/source/core/ucbstore.cxx |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 98895a5fd21125e41c423d3af318d9f082e83df4
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Oct 26 22:59:32 2017 +0200

    Replace list by vector in ucbstore (ucb)
    
    Change-Id: I1ff394ecd1fe805d671d666d8bc2522c33c40b50
    Reviewed-on: https://gerrit.libreoffice.org/43922
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

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 );
             }
         }
 


More information about the Libreoffice-commits mailing list