summaryrefslogtreecommitdiff
path: root/sc/source/ui/optdlg
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/optdlg')
-rw-r--r--sc/source/ui/optdlg/tpcalc.cxx2
-rw-r--r--sc/source/ui/optdlg/tpformula.cxx2
-rw-r--r--sc/source/ui/optdlg/tpview.cxx10
3 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx
index 4ec601a23ac6..4a2e0a4e1a4a 100644
--- a/sc/source/ui/optdlg/tpcalc.cxx
+++ b/sc/source/ui/optdlg/tpcalc.cxx
@@ -192,7 +192,7 @@ void ScTpCalcOptions::Reset( const SfxItemSet* /* rCoreAttrs */ )
bool ScTpCalcOptions::FillItemSet( SfxItemSet* rCoreAttrs )
{
// every other options are updated in handlers
- pLocalOptions->SetIterCount( (sal_uInt16)m_pEdSteps->GetValue() );
+ pLocalOptions->SetIterCount( static_cast<sal_uInt16>(m_pEdSteps->GetValue()) );
pLocalOptions->SetIgnoreCase( !m_pBtnCase->IsChecked() );
pLocalOptions->SetCalcAsShown( m_pBtnCalc->IsChecked() );
pLocalOptions->SetMatchWholeCell( m_pBtnMatch->IsChecked() );
diff --git a/sc/source/ui/optdlg/tpformula.cxx b/sc/source/ui/optdlg/tpformula.cxx
index 14bd0695589d..0bd80b7f62db 100644
--- a/sc/source/ui/optdlg/tpformula.cxx
+++ b/sc/source/ui/optdlg/tpformula.cxx
@@ -116,7 +116,7 @@ void ScTpFormulaOptions::OnFocusSeparatorInput(Edit* pEdit)
// Make sure the entire text is selected.
sal_Int32 nLen = pEdit->GetText().getLength();
- Selection aSel(0, (sal_uInt16)nLen);
+ Selection aSel(0, static_cast<sal_uInt16>(nLen));
pEdit->SetSelection(aSel);
maOldSepValue = pEdit->GetText();
}
diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx
index 195259b2fd00..e9d4a1006693 100644
--- a/sc/source/ui/optdlg/tpview.cxx
+++ b/sc/source/ui/optdlg/tpview.cxx
@@ -188,9 +188,9 @@ void ScTpContentOptions::Reset( const SfxItemSet* rCoreSet )
pAnchorCB ->Check(pLocalOptions->GetOption(VOPT_ANCHOR));
pClipMarkCB->Check(pLocalOptions->GetOption(VOPT_CLIPMARKS));
- pObjGrfLB ->SelectEntryPos( (sal_uInt16)pLocalOptions->GetObjMode(VOBJ_TYPE_OLE) );
- pDiagramLB ->SelectEntryPos( (sal_uInt16)pLocalOptions->GetObjMode(VOBJ_TYPE_CHART) );
- pDrawLB ->SelectEntryPos( (sal_uInt16)pLocalOptions->GetObjMode(VOBJ_TYPE_DRAW) );
+ pObjGrfLB ->SelectEntryPos( static_cast<sal_uInt16>(pLocalOptions->GetObjMode(VOBJ_TYPE_OLE)) );
+ pDiagramLB ->SelectEntryPos( static_cast<sal_uInt16>(pLocalOptions->GetObjMode(VOBJ_TYPE_CHART)) );
+ pDrawLB ->SelectEntryPos( static_cast<sal_uInt16>(pLocalOptions->GetObjMode(VOBJ_TYPE_DRAW)) );
pRowColHeaderCB->Check( pLocalOptions->GetOption(VOPT_HEADER) );
pHScrollCB->Check( pLocalOptions->GetOption(VOPT_HSCROLL) );
@@ -372,7 +372,7 @@ ScTpLayoutOptions::ScTpLayoutOptions( vcl::Window* pParent,
{
// only use these metrics
sal_Int32 nPos = m_pUnitLB->InsertEntry( sMetric );
- m_pUnitLB->SetEntryData( nPos, reinterpret_cast<void*>((sal_IntPtr)eFUnit) );
+ m_pUnitLB->SetEntryData( nPos, reinterpret_cast<void*>(static_cast<sal_IntPtr>(eFUnit)) );
}
break;
default:
@@ -426,7 +426,7 @@ bool ScTpLayoutOptions::FillItemSet( SfxItemSet* rCoreSet )
const sal_Int32 nMPos = m_pUnitLB->GetSelectedEntryPos();
if ( m_pUnitLB->IsValueChangedFromSaved() )
{
- sal_uInt16 nFieldUnit = (sal_uInt16)reinterpret_cast<sal_IntPtr>(m_pUnitLB->GetEntryData( nMPos ));
+ sal_uInt16 nFieldUnit = static_cast<sal_uInt16>(reinterpret_cast<sal_IntPtr>(m_pUnitLB->GetEntryData( nMPos )));
rCoreSet->Put( SfxUInt16Item( SID_ATTR_METRIC, nFieldUnit ) );
bRet = true;
}