Kaydet (Commit) 9af0403d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantcast: redundant static_casts in svx

Change-Id: I50ddaa998d28de04416f6406cc165fa863594a5c
üst 92c517b9
......@@ -1238,7 +1238,7 @@ namespace svxform
void NavigatorTree::ModelHasRemoved( SvTreeListEntry* _pEntry )
{
SvTreeListEntry* pTypedEntry = static_cast< SvTreeListEntry* >( _pEntry );
SvTreeListEntry* pTypedEntry = _pEntry;
if ( doingKeyboardCut() )
m_aCutEntries.erase( pTypedEntry );
......
......@@ -88,7 +88,7 @@ bool CommonStylePreviewRenderer::recalculate()
}
if ((pItem = pItemSet->GetItem(SID_ATTR_CHAR_RELIEF)) != nullptr)
{
pFont->SetRelief(static_cast<FontRelief>(static_cast<const SvxCharReliefItem*>(pItem)->GetValue()));
pFont->SetRelief(static_cast<const SvxCharReliefItem*>(pItem)->GetValue());
}
if ((pItem = pItemSet->GetItem(SID_ATTR_CHAR_UNDERLINE)) != nullptr)
{
......
......@@ -703,7 +703,7 @@ void SvxStyleBox_Impl::SetupEntry(vcl::RenderContext& rRenderContext, vcl::Windo
pItem = pItemSet->GetItem( SID_ATTR_CHAR_RELIEF );
if ( pItem )
aFont.SetRelief( static_cast< FontRelief >( static_cast< const SvxCharReliefItem* >( pItem )->GetValue() ) );
aFont.SetRelief( static_cast< const SvxCharReliefItem* >( pItem )->GetValue() );
pItem = pItemSet->GetItem( SID_ATTR_CHAR_UNDERLINE );
if ( pItem )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment