From ee0d6e3ab040ddd2ce1cd73945ee44da69201ca4 Mon Sep 17 00:00:00 2001 From: August Sodora Date: Fri, 20 Jan 2012 01:23:16 -0500 Subject: DECL_PTRARRAY->std::vector --- sfx2/source/control/msgpool.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sfx2/source/control/msgpool.cxx') diff --git a/sfx2/source/control/msgpool.cxx b/sfx2/source/control/msgpool.cxx index 9201f86b0642..f49de947e4a5 100644 --- a/sfx2/source/control/msgpool.cxx +++ b/sfx2/source/control/msgpool.cxx @@ -43,7 +43,6 @@ #include - struct SfxSlotType_Impl { sal_uInt16 nId; @@ -54,9 +53,6 @@ struct SfxSlotType_Impl {} }; -DECL_PTRARRAY(SfxSlotTypeArr_Impl, SfxSlotType_Impl*, 8, 8) - - SfxSlotPool::SfxSlotPool( SfxSlotPool *pParent, ResMgr* pResManager ) : _pGroups(0) , _pTypes(0) @@ -82,8 +78,8 @@ SfxSlotPool::~SfxSlotPool() delete _pGroups; if ( _pTypes ) { - for ( sal_uInt16 n =_pTypes->Count(); n--; ) - delete _pTypes->GetObject(n); + for(sal_uInt16 n = 0; n < _pTypes->size(); ++n) + delete (*_pTypes)[n]; delete _pTypes; } } -- cgit