diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-19 19:10:07 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-02-20 13:58:14 +0530 |
commit | 2acb622631453a3e4b74991986618ba161d9e4b8 (patch) | |
tree | e12553616e17edbee4a13ed302e0bafc33413465 /sd | |
parent | gtktiledviewer: Adjust for different delete uno cmd for impress (diff) | |
download | core-2acb622631453a3e4b74991986618ba161d9e4b8.tar.gz core-2acb622631453a3e4b74991986618ba161d9e4b8.zip |
sd: Superfluous condition
Change-Id: Ice8c5937e208880083b45d11aedcc3cb4a9f3c10
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/annotations/annotationmanager.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index 4f895c530ffa..70d53dae6363 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -315,15 +315,11 @@ void AnnotationManagerImpl::ExecuteDeleteAnnotation(SfxRequest& rReq) case SID_DELETE_POSTIT: { Reference< XAnnotation > xAnnotation; - - if( rReq.GetSlot() == SID_DELETE_POSTIT ) + if( pArgs ) { - if( pArgs ) - { - const SfxPoolItem* pPoolItem = nullptr; - if( SfxItemState::SET == pArgs->GetItemState( SID_DELETE_POSTIT, true, &pPoolItem ) ) - static_cast<const SfxUnoAnyItem*>(pPoolItem)->GetValue() >>= xAnnotation; - } + const SfxPoolItem* pPoolItem = nullptr; + if( SfxItemState::SET == pArgs->GetItemState( SID_DELETE_POSTIT, true, &pPoolItem ) ) + static_cast<const SfxUnoAnyItem*>(pPoolItem)->GetValue() >>= xAnnotation; } if( !xAnnotation.is() ) |