diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-20 11:52:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-20 13:33:58 +0200 |
commit | 3bb30a68e0604b3006f367fdb4c0a797846c23bc (patch) | |
tree | c5f5d11d9a0656c92ff7196984ca9238df2e89ee /svx/source/tbxctrls/lboxctrl.cxx | |
parent | efa7f1a549ebf2580d50f6f0bb96e294a5fce670 (diff) |
loplugin: cstylecast
Change-Id: If50022b55a558c4124d71acbbe0ef5eb48801d0b
Diffstat (limited to 'svx/source/tbxctrls/lboxctrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/lboxctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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<const SfxStringItem *>(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<const SfxStringListItem *>(pState); const std::vector<OUString> &aLst = rItem.GetList(); for( long nI = 0, nEnd = aLst.size(); nI < nEnd; ++nI ) |