Replace List for std::vector<String>.

This commit is contained in:
Rafael Dominguez 2011-05-21 18:29:38 -04:30 committed by Joseph Powers
parent 988d4d45a8
commit e5da5f4486

View file

@ -552,13 +552,12 @@ void ScTabViewShell::GetUndoState(SfxItemSet &rSet)
SfxStringListItem aStrLst( nWhich );
if ( pUndoManager )
{
List* pList = aStrLst.GetList();
std::vector<String> &aList = aStrLst.GetList();
sal_Bool bIsUndo = ( nWhich == SID_GETUNDOSTRINGS );
size_t nCount = bIsUndo ? pUndoManager->GetUndoActionCount() : pUndoManager->GetRedoActionCount();
for (size_t i=0; i<nCount; i++)
pList->Insert( new String( bIsUndo ? pUndoManager->GetUndoActionComment(i) :
pUndoManager->GetRedoActionComment(i) ),
LIST_APPEND );
aList.push_back( bIsUndo ? pUndoManager->GetUndoActionComment(i) :
pUndoManager->GetRedoActionComment(i) );
}
rSet.Put( aStrLst );
}