summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/lboxctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/lboxctrl.cxx')
-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] ));
}
}
}