diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 10:04:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 10:44:21 +0100 |
commit | 9f71d9f696609d9f1c5863f3b118afaa21cd4d57 (patch) | |
tree | a9558e46d15d50ac34f1aeb5937b718cdd010b06 /sd/source | |
parent | e8d1110d07bf3c1a4ba92a2940e52e69f7092fcb (diff) |
coverity#735487 Logically dead code
Change-Id: Iaa8ef8dd533caf8d12211c4cc127f684bc86df73
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/drtxtob1.cxx | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index 322e7563d7b3..605983c7a4d5 100644 --- a/sd/source/ui/view/drtxtob1.cxx +++ b/sd/source/ui/view/drtxtob1.cxx @@ -503,34 +503,14 @@ void TextObjectBar::Execute( SfxRequest &rReq ) // attributes for TextObjectBar case SID_ATTR_CHAR_FONT: - { - if( pArgs ) - { - if( SFX_ITEM_SET == pArgs->GetItemState( EE_CHAR_FONTINFO, true, &pPoolItem ) ) - aNewAttr.Put( *pPoolItem ); - } - else - mpViewShell->GetViewFrame()->GetDispatcher()-> + mpViewShell->GetViewFrame()->GetDispatcher()-> Execute( SID_CHAR_DLG, SFX_CALLMODE_ASYNCHRON ); - } break; case SID_ATTR_CHAR_FONTHEIGHT: - { - if( pArgs ) - { - if( SFX_ITEM_SET == pArgs->GetItemState( EE_CHAR_FONTHEIGHT, true, &pPoolItem ) ) - aNewAttr.Put( *pPoolItem ); - } - else - mpViewShell->GetViewFrame()->GetDispatcher()-> + mpViewShell->GetViewFrame()->GetDispatcher()-> Execute( SID_CHAR_DLG, SFX_CALLMODE_ASYNCHRON ); - } break; case SID_ATTR_CHAR_COLOR: - { - if( pArgs && SFX_ITEM_SET == pArgs->GetItemState( EE_CHAR_COLOR, true, &pPoolItem ) ) - aNewAttr.Put( *pPoolItem ); - } break; // #i35937# removed need for FN_NUM_BULLET_ON handling } |