summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2011-05-21 17:06:29 -0430
committerJoseph Powers <jpowers27@cox.net>2011-05-22 21:19:12 -0700
commitdd1cc979ced4ba86ee4a4ffdda040912ac172053 (patch)
tree697ac9724d94025f56d9c7a99fad08c3f075193b
parenta72ca64d502d73e3c4a579f0e1aed9bfebd36c87 (diff)
Replace List for std::vector<String>.
-rw-r--r--svx/source/tbxctrls/lboxctrl.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index 434d318398..ac8fa85ccf 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -302,13 +302,10 @@ void SvxUndoRedoControl::StateChanged(
if ( pState && pState->ISA( SfxStringListItem ) )
{
SfxStringListItem &rItem = *(SfxStringListItem *)pState;
- const List* pLst = rItem.GetList();
- DBG_ASSERT( pLst, "no undo actions available" );
- if ( pLst )
- {
- for( long nI = 0, nEnd = pLst->Count(); nI < nEnd; ++nI )
- aUndoRedoList.push_back( rtl::OUString( *(String *)pLst->GetObject( nI )));
- }
+
+ const std::vector<String> &aLst = rItem.GetList();
+ for( long nI = 0, nEnd = aLst.size(); nI < nEnd; ++nI )
+ aUndoRedoList.push_back( rtl::OUString( aLst[nI] ));
}
}
}