From 66ed9797ba8f61994a187dfcc189f375dcd0cdcc Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Thu, 12 Apr 2018 21:53:29 +0300 Subject: Simplify calls to Menu::CheckItem in cui, dbaccess, vcl, sc, sd Change-Id: I328d81cf6cd5a7e31fb21a758e4b2670e7df1b91 Reviewed-on: https://gerrit.libreoffice.org/52797 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sd/source/ui/annotations/annotationmanager.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sd/source/ui/annotations') diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx index bdf41e19a65b..dfd97e4a057a 100644 --- a/sd/source/ui/annotations/annotationmanager.cxx +++ b/sd/source/ui/annotations/annotationmanager.cxx @@ -1122,25 +1122,25 @@ void AnnotationManagerImpl::ExecuteAnnotationContextMenu( const Reference< XAnno if ( aSet.GetItemState( EE_CHAR_WEIGHT ) == SfxItemState::SET ) { if( aSet.Get( EE_CHAR_WEIGHT ).GetWeight() == WEIGHT_BOLD ) - pMenu->CheckItem(pMenu->GetItemId("bold")); + pMenu->CheckItem("bold"); } if ( aSet.GetItemState( EE_CHAR_ITALIC ) == SfxItemState::SET ) { if( aSet.Get( EE_CHAR_ITALIC ).GetPosture() != ITALIC_NONE ) - pMenu->CheckItem(pMenu->GetItemId("italic")); + pMenu->CheckItem("italic"); } if ( aSet.GetItemState( EE_CHAR_UNDERLINE ) == SfxItemState::SET ) { if( aSet.Get( EE_CHAR_UNDERLINE ).GetLineStyle() != LINESTYLE_NONE ) - pMenu->CheckItem(pMenu->GetItemId("underline")); + pMenu->CheckItem("underline"); } if ( aSet.GetItemState( EE_CHAR_STRIKEOUT ) == SfxItemState::SET ) { if( aSet.Get( EE_CHAR_STRIKEOUT ).GetStrikeout() != STRIKEOUT_NONE ) - pMenu->CheckItem(pMenu->GetItemId("strike")); + pMenu->CheckItem("strike"); } TransferableDataHelper aDataHelper( TransferableDataHelper::CreateFromSystemClipboard( pAnnotationWindow ) ); pMenu->EnableItem(pMenu->GetItemId("paste"), aDataHelper.GetFormatCount() != 0); -- cgit