diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/app/sdmod1.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/table/tableobjectbar.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx index 573ee853069b..881d5aa1eefd 100644 --- a/sd/source/ui/app/sdmod1.cxx +++ b/sd/source/ui/app/sdmod1.cxx @@ -77,7 +77,7 @@ private: void SdModule::Execute(SfxRequest& rReq) { const SfxItemSet* pSet = rReq.GetArgs(); - sal_uLong nSlotId = rReq.GetSlot(); + sal_uInt16 nSlotId = rReq.GetSlot(); switch ( nSlotId ) { @@ -160,9 +160,9 @@ void SdModule::Execute(SfxRequest& rReq) LanguageType eLanguage = static_cast<const SvxLanguageItem*>(pItem)->GetValue(); SdDrawDocument* pDoc = pDocSh->GetDoc(); - if( nSlotId == sal_uInt16(SID_ATTR_CHAR_CJK_LANGUAGE) ) + if( nSlotId == SID_ATTR_CHAR_CJK_LANGUAGE ) pDoc->SetLanguage( eLanguage, EE_CHAR_LANGUAGE_CJK ); - else if( nSlotId == sal_uInt16(SID_ATTR_CHAR_CTL_LANGUAGE) ) + else if( nSlotId == SID_ATTR_CHAR_CTL_LANGUAGE ) pDoc->SetLanguage( eLanguage, EE_CHAR_LANGUAGE_CTL ); else pDoc->SetLanguage( eLanguage, EE_CHAR_LANGUAGE ); diff --git a/sd/source/ui/table/tableobjectbar.cxx b/sd/source/ui/table/tableobjectbar.cxx index 62d81d9805df..6dfd86928530 100644 --- a/sd/source/ui/table/tableobjectbar.cxx +++ b/sd/source/ui/table/tableobjectbar.cxx @@ -116,7 +116,7 @@ void TableObjectBar::Execute( SfxRequest& rReq ) SfxBindings* pBindings = &mpViewSh->GetViewFrame()->GetBindings(); rtl::Reference< sdr::SelectionController > xController( mpView->getSelectionController() ); - sal_uLong nSlotId = rReq.GetSlot(); + sal_uInt16 nSlotId = rReq.GetSlot(); if( xController.is() ) { switch( nSlotId ) @@ -160,10 +160,10 @@ void TableObjectBar::Execute( SfxRequest& rReq ) else nSlotId = SID_TABLE_INSERT_COL; - rReq.AppendItem(SfxInt16Item(static_cast<sal_uInt16>(nSlotId), nCount)); + rReq.AppendItem(SfxInt16Item(nSlotId, nCount)); rReq.AppendItem(SfxBoolItem(SID_TABLE_PARAM_INSERT_AFTER, bInsertAfter)); - rReq.SetSlot( static_cast<sal_uInt16>(nSlotId) ); + rReq.SetSlot( nSlotId ); } } |