diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-05-21 18:29:38 -0430 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-05-22 22:52:43 -0700 |
commit | dea06b746fb0b9e7d06f4eeba41c352bd33d887c (patch) | |
tree | 33f80b373ac4eb85ce71a14f0f957dd3ef1f96e3 | |
parent | 6da3ad3fc84228effdd09221dd7d4c3a1755f8d4 (diff) |
Replace List for std::vector<String>.
-rw-r--r-- | sc/source/ui/view/tabvwshb.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx index 74ee9d36e..215a65801 100644 --- a/sc/source/ui/view/tabvwshb.cxx +++ b/sc/source/ui/view/tabvwshb.cxx @@ -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 ); } |