summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-02-19 19:10:07 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-02-20 13:58:14 +0530
commit2acb622631453a3e4b74991986618ba161d9e4b8 (patch)
treee12553616e17edbee4a13ed302e0bafc33413465 /sd
parent6a4bf88c581b7fc1b6303099c804235027fd9f3e (diff)
sd: Superfluous condition
Change-Id: Ice8c5937e208880083b45d11aedcc3cb4a9f3c10
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx12
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() )