diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-05-21 17:06:29 -0430 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-05-22 21:19:12 -0700 |
commit | 826f36c28912484ad11c5638e2936a11dd18d885 (patch) | |
tree | e5bda11768a9a87eba2d359a5a633b95b3be327d /svx/source | |
parent | cfe163cf3c4bbfb9b8d58a0f5c560c1a68f60866 (diff) |
Replace List for std::vector<String>.
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/tbxctrls/lboxctrl.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx index b5ed93d008b7..def01cd52812 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] )); } } } |