Replace remaining lists by vectors in svtools
Change-Id: I3b85f4853d305fec2efe1fa351466c56d11473c9 Reviewed-on: https://gerrit.libreoffice.org/44303 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
6070dec9ca
commit
ca2aaa2b9f
@@ -33,7 +33,7 @@
|
||||
#include <vcl/settings.hxx>
|
||||
#include <vcl/toolbox.hxx>
|
||||
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
using namespace ::utl ;
|
||||
using namespace ::osl ;
|
||||
@@ -73,7 +73,7 @@ using namespace ::com::sun::star;
|
||||
class SvtMiscOptions_Impl : public ConfigItem
|
||||
{
|
||||
private:
|
||||
::std::list<Link<LinkParamNone*,void>> aList;
|
||||
::std::vector<Link<LinkParamNone*,void>> aList;
|
||||
bool m_bUseSystemFileDialog;
|
||||
bool m_bIsUseSystemFileDialogRO;
|
||||
bool m_bPluginsEnabled;
|
||||
@@ -521,20 +521,13 @@ void SvtMiscOptions_Impl::AddListenerLink( const Link<LinkParamNone*,void>& rLin
|
||||
|
||||
void SvtMiscOptions_Impl::RemoveListenerLink( const Link<LinkParamNone*,void>& rLink )
|
||||
{
|
||||
for ( ::std::list<Link<LinkParamNone*,void>>::iterator iter = aList.begin(); iter != aList.end(); ++iter )
|
||||
{
|
||||
if ( *iter == rLink )
|
||||
{
|
||||
aList.erase(iter);
|
||||
break;
|
||||
}
|
||||
}
|
||||
aList.erase(std::remove(aList.begin(), aList.end(), rLink), aList.end());
|
||||
}
|
||||
|
||||
void SvtMiscOptions_Impl::CallListeners()
|
||||
{
|
||||
for ( ::std::list<Link<LinkParamNone*,void>>::const_iterator iter = aList.begin(); iter != aList.end(); ++iter )
|
||||
iter->Call( nullptr );
|
||||
for (auto const& elem : aList)
|
||||
elem.Call( nullptr );
|
||||
}
|
||||
|
||||
void SvtMiscOptions_Impl::SetToolboxStyle( sal_Int16 nStyle )
|
||||
|
||||
@@ -323,7 +323,7 @@ struct TDataCntnrEntry_Impl
|
||||
};
|
||||
|
||||
|
||||
typedef ::std::list< TDataCntnrEntry_Impl > TDataCntnrEntryList;
|
||||
typedef ::std::vector< TDataCntnrEntry_Impl > TDataCntnrEntryList;
|
||||
|
||||
|
||||
struct TransferDataContainer_Impl
|
||||
|
||||
@@ -536,7 +536,7 @@ public:
|
||||
private:
|
||||
OUString maName;
|
||||
|
||||
std::list< rtl::Reference<SvUnoImageMapObject> > maObjectList;
|
||||
std::vector< rtl::Reference<SvUnoImageMapObject> > maObjectList;
|
||||
};
|
||||
|
||||
UNO3_GETIMPLEMENTATION_IMPL( SvUnoImageMap );
|
||||
|
||||
Reference in New Issue
Block a user