From 3bb30a68e0604b3006f367fdb4c0a797846c23bc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 Oct 2014 11:52:06 +0200 Subject: loplugin: cstylecast Change-Id: If50022b55a558c4124d71acbbe0ef5eb48801d0b --- svx/source/tbxctrls/lboxctrl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/tbxctrls/lboxctrl.cxx') diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx index f6b1f7f7de31..66512d5352fb 100644 --- a/svx/source/tbxctrls/lboxctrl.cxx +++ b/svx/source/tbxctrls/lboxctrl.cxx @@ -248,7 +248,7 @@ void SvxUndoRedoControl::StateChanged( } else if ( pState && pState->ISA( SfxStringItem ) ) { - SfxStringItem& rItem = *(SfxStringItem *)pState; + const SfxStringItem& rItem = *static_cast(pState); ToolBox& rBox = GetToolBox(); OUString aQuickHelpText = MnemonicGenerator::EraseAllMnemonicChars( rItem.GetValue() ); rBox.SetQuickHelpText( GetId(), aQuickHelpText ); @@ -261,7 +261,7 @@ void SvxUndoRedoControl::StateChanged( if ( pState && pState->ISA( SfxStringListItem ) ) { - SfxStringListItem &rItem = *(SfxStringListItem *)pState; + const SfxStringListItem &rItem = *static_cast(pState); const std::vector &aLst = rItem.GetList(); for( long nI = 0, nEnd = aLst.size(); nI < nEnd; ++nI ) -- cgit