Replace List for std::vector<String>.
This commit is contained in:
parent
988d4d45a8
commit
e5da5f4486
1 changed files with 3 additions and 4 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue