Kaydet (Commit) eb9525a6 authored tarafından Julien Nabet's avatar Julien Nabet

Replace lists by vectors in filtask (ucb)

Change-Id: I5b4359727ebf58bc121325d490e63f2c919dd7ab
Reviewed-on: https://gerrit.libreoffice.org/43921Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 21fe5ef0
This diff is collapsed.
...@@ -56,7 +56,6 @@ ...@@ -56,7 +56,6 @@
#include <com/sun/star/task/XInteractionRequest.hpp> #include <com/sun/star/task/XInteractionRequest.hpp>
#include "filerror.hxx" #include "filerror.hxx"
#include "filnot.hxx" #include "filnot.hxx"
#include <list>
#include <unordered_map> #include <unordered_map>
#include <functional> #include <functional>
#include <unordered_set> #include <unordered_set>
...@@ -225,7 +224,7 @@ namespace fileaccess ...@@ -225,7 +224,7 @@ namespace fileaccess
}; };
typedef std::unordered_set< MyProperty,hMyProperty,eMyProperty > PropertySet; typedef std::unordered_set< MyProperty,hMyProperty,eMyProperty > PropertySet;
typedef std::list< Notifier* > NotifierList; typedef std::vector< Notifier* > NotifierList;
class UnqPathData class UnqPathData
...@@ -517,21 +516,21 @@ namespace fileaccess ...@@ -517,21 +516,21 @@ namespace fileaccess
/* get eventListeners */ /* get eventListeners */
/********************************************************************************/ /********************************************************************************/
std::list< ContentEventNotifier* >* SAL_CALL std::vector< ContentEventNotifier* >* SAL_CALL
getContentEventListeners( const OUString& aName ); getContentEventListeners( const OUString& aName );
std::list< ContentEventNotifier* >* SAL_CALL std::vector< ContentEventNotifier* >* SAL_CALL
getContentDeletedEventListeners( const OUString& aName ); getContentDeletedEventListeners( const OUString& aName );
std::vector< std::list< ContentEventNotifier* >* >* SAL_CALL std::vector< std::vector< ContentEventNotifier* >* >* SAL_CALL
getContentExchangedEventListeners( const OUString& aOldPrefix, getContentExchangedEventListeners( const OUString& aOldPrefix,
const OUString& aNewPrefix, const OUString& aNewPrefix,
bool withChildren ); bool withChildren );
std::list< PropertyChangeNotifier* >* SAL_CALL std::vector< PropertyChangeNotifier* >* SAL_CALL
getPropertyChangeNotifier( const OUString& aName ); getPropertyChangeNotifier( const OUString& aName );
std::list< PropertySetInfoChangeNotifier* >* SAL_CALL std::vector< PropertySetInfoChangeNotifier* >* SAL_CALL
getPropertySetListeners( const OUString& aName ); getPropertySetListeners( const OUString& aName );
...@@ -540,28 +539,28 @@ namespace fileaccess ...@@ -540,28 +539,28 @@ namespace fileaccess
/********************************************************************************/ /********************************************************************************/
static void SAL_CALL notifyPropertyChanges( static void SAL_CALL notifyPropertyChanges(
std::list< PropertyChangeNotifier* >* listeners, std::vector< PropertyChangeNotifier* >* listeners,
const css::uno::Sequence< css::beans::PropertyChangeEvent >& seqChanged ); const css::uno::Sequence< css::beans::PropertyChangeEvent >& seqChanged );
static void SAL_CALL notifyContentExchanged( static void SAL_CALL notifyContentExchanged(
std::vector< std::list< ContentEventNotifier* >* >* listeners_vec ); std::vector< std::vector< ContentEventNotifier* >* >* listeners_vec );
static void SAL_CALL notifyInsert( static void SAL_CALL notifyInsert(
std::list< ContentEventNotifier* >* listeners,const OUString& aChildName ); std::vector< ContentEventNotifier* >* listeners,const OUString& aChildName );
static void SAL_CALL notifyContentDeleted( static void SAL_CALL notifyContentDeleted(
std::list< ContentEventNotifier* >* listeners ); std::vector< ContentEventNotifier* >* listeners );
static void SAL_CALL notifyContentRemoved( static void SAL_CALL notifyContentRemoved(
std::list< ContentEventNotifier* >* listeners, std::vector< ContentEventNotifier* >* listeners,
const OUString& aChildName ); const OUString& aChildName );
static void SAL_CALL notifyPropertyAdded( static void SAL_CALL notifyPropertyAdded(
std::list< PropertySetInfoChangeNotifier* >* listeners, std::vector< PropertySetInfoChangeNotifier* >* listeners,
const OUString& aPropertyName ); const OUString& aPropertyName );
static void SAL_CALL notifyPropertyRemoved( static void SAL_CALL notifyPropertyRemoved(
std::list< PropertySetInfoChangeNotifier* >* listeners, std::vector< PropertySetInfoChangeNotifier* >* listeners,
const OUString& aPropertyName ); const OUString& aPropertyName );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment