summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-26 08:17:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-26 10:57:13 +0200
commitd1b0dbcbd7016fea59b4a509d95045f643b9eeec (patch)
tree2b1bbfabc60fdfa8c345e7db2d13bae5feba4f71 /sd
parent8061cd765c7854667550d6aafda5832715648876 (diff)
sal_uLong->sal_uInt16
Change-Id: I5e62c090978cabe3cc9b065fdd2b0e2a235557f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152293 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/sdmod1.cxx6
-rw-r--r--sd/source/ui/table/tableobjectbar.cxx6
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 );
}
}