summaryrefslogtreecommitdiff
path: root/sd/source/ui/annotations
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:33:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:26 +0200
commit8039c64822c8de24ea452bff7917193f7cc90669 (patch)
treea737f86d94d0c11990ffeae7f0661ce9a07eb484 /sd/source/ui/annotations
parent60467763e32833232394e05642338f60346c0d53 (diff)
loplugin:simplifybool
Change-Id: Ie214d859cb47c64cb6fab6f451a53ef188400026
Diffstat (limited to 'sd/source/ui/annotations')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index a1a445302f55..015c5a457570 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -251,7 +251,7 @@ void AnnotationManagerImpl::ShowAnnotations( bool bShow )
SdOptions* pOptions = SD_MOD()->GetSdOptions(mpDoc->GetDocumentType());
if( pOptions )
- pOptions->SetShowComments( mbShowAnnotations ? true : false );
+ pOptions->SetShowComments( mbShowAnnotations );
UpdateTags();
}
@@ -929,7 +929,7 @@ void AnnotationManagerImpl::ExecuteAnnotationContextMenu( Reference< XAnnotation
aStr = aStr.replaceFirst("%1", aReplace);
pMenu->SetItemText( SID_DELETEALLBYAUTHOR_POSTIT, aStr );
pMenu->EnableItem( SID_REPLYTO_POSTIT, (sAuthor != sCurrentAuthor) && !bReadOnly );
- pMenu->EnableItem( SID_DELETE_POSTIT, (xAnnotation.is() && !bReadOnly) ? true : false );
+ pMenu->EnableItem( SID_DELETE_POSTIT, xAnnotation.is() && !bReadOnly );
pMenu->EnableItem( SID_DELETEALLBYAUTHOR_POSTIT, !bReadOnly );
pMenu->EnableItem( SID_DELETEALL_POSTIT, !bReadOnly );