summaryrefslogtreecommitdiff
path: root/sd/source/ui/table
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/table')
-rw-r--r--sd/source/ui/table/TableDesignPane.cxx6
-rw-r--r--sd/source/ui/table/tableobjectbar.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx
index 06a77214f9fe..aba2d0473ae7 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -323,8 +323,8 @@ void TableValueSet::Resize()
int nVisibleRowCount = (aValueSetSize.Height()+2) / aItemSize.Height();
- SetColCount ((sal_uInt16)nColumnCount);
- SetLineCount ((sal_uInt16)nRowCount);
+ SetColCount (static_cast<sal_uInt16>(nColumnCount));
+ SetLineCount (static_cast<sal_uInt16>(nRowCount));
if( !m_bModal )
{
@@ -402,7 +402,7 @@ void TableDesignWidget::updateControls()
{
if( aNames[nIndex] == sStyleName )
{
- nSelection = (sal_uInt16)nIndex+1;
+ nSelection = static_cast<sal_uInt16>(nIndex)+1;
break;
}
}
diff --git a/sd/source/ui/table/tableobjectbar.cxx b/sd/source/ui/table/tableobjectbar.cxx
index 6612478aa1e2..046880e4822f 100644
--- a/sd/source/ui/table/tableobjectbar.cxx
+++ b/sd/source/ui/table/tableobjectbar.cxx
@@ -167,10 +167,10 @@ void TableObjectBar::Execute( SfxRequest& rReq )
else
nSlotId = SID_TABLE_INSERT_COL;
- rReq.AppendItem(SfxInt16Item((sal_uInt16)nSlotId, nCount));
+ rReq.AppendItem(SfxInt16Item(static_cast<sal_uInt16>(nSlotId), nCount));
rReq.AppendItem(SfxBoolItem(SID_TABLE_PARAM_INSERT_AFTER, bInsertAfter));
- rReq.SetSlot( (sal_uInt16)nSlotId );
+ rReq.SetSlot( static_cast<sal_uInt16>(nSlotId) );
}
}