summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/docoptio.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/tool/docoptio.cxx')
-rw-r--r--sc/source/core/tool/docoptio.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx
index 5eec4ccc7bed..859d73126c01 100644
--- a/sc/source/core/tool/docoptio.cxx
+++ b/sc/source/core/tool/docoptio.cxx
@@ -215,22 +215,22 @@ ScDocCfg::ScDocCfg() :
SetIter( ScUnoHelpFunctions::GetBoolFromAny( pValues[nProp] ) );
break;
case SCCALCOPT_ITER_STEPS:
- if (pValues[nProp] >>= nIntVal) SetIterCount( (sal_uInt16) nIntVal );
+ if (pValues[nProp] >>= nIntVal) SetIterCount( static_cast<sal_uInt16>(nIntVal) );
break;
case SCCALCOPT_ITER_MINCHG:
if (pValues[nProp] >>= fDoubleVal) SetIterEps( fDoubleVal );
break;
case SCCALCOPT_DATE_DAY:
- if (pValues[nProp] >>= nIntVal) nDateDay = (sal_uInt16) nIntVal;
+ if (pValues[nProp] >>= nIntVal) nDateDay = static_cast<sal_uInt16>(nIntVal);
break;
case SCCALCOPT_DATE_MONTH:
- if (pValues[nProp] >>= nIntVal) nDateMonth = (sal_uInt16) nIntVal;
+ if (pValues[nProp] >>= nIntVal) nDateMonth = static_cast<sal_uInt16>(nIntVal);
break;
case SCCALCOPT_DATE_YEAR:
- if (pValues[nProp] >>= nIntVal) nDateYear = (sal_Int16) nIntVal;
+ if (pValues[nProp] >>= nIntVal) nDateYear = static_cast<sal_Int16>(nIntVal);
break;
case SCCALCOPT_DECIMALS:
- if (pValues[nProp] >>= nIntVal) SetStdPrecision( (sal_uInt16) nIntVal );
+ if (pValues[nProp] >>= nIntVal) SetStdPrecision( static_cast<sal_uInt16>(nIntVal) );
break;
case SCCALCOPT_CASESENSITIVE:
// content is reversed
@@ -276,7 +276,7 @@ ScDocCfg::ScDocCfg() :
case SCDOCLAYOUTOPT_TABSTOP:
// TabDistance in ScDocOptions is in twips
if (pValues[nProp] >>= nIntVal)
- SetTabDistance( (sal_uInt16) HMMToTwips( nIntVal ) );
+ SetTabDistance( static_cast<sal_uInt16>(HMMToTwips( nIntVal )) );
break;
}
}
@@ -303,22 +303,22 @@ IMPL_LINK_NOARG(ScDocCfg, CalcCommitHdl, ScLinkConfigItem&, void)
pValues[nProp] <<= IsIter();
break;
case SCCALCOPT_ITER_STEPS:
- pValues[nProp] <<= (sal_Int32) GetIterCount();
+ pValues[nProp] <<= static_cast<sal_Int32>(GetIterCount());
break;
case SCCALCOPT_ITER_MINCHG:
pValues[nProp] <<= GetIterEps();
break;
case SCCALCOPT_DATE_DAY:
- pValues[nProp] <<= (sal_Int32) nDateDay;
+ pValues[nProp] <<= static_cast<sal_Int32>(nDateDay);
break;
case SCCALCOPT_DATE_MONTH:
- pValues[nProp] <<= (sal_Int32) nDateMonth;
+ pValues[nProp] <<= static_cast<sal_Int32>(nDateMonth);
break;
case SCCALCOPT_DATE_YEAR:
- pValues[nProp] <<= (sal_Int32) nDateYear;
+ pValues[nProp] <<= static_cast<sal_Int32>(nDateYear);
break;
case SCCALCOPT_DECIMALS:
- pValues[nProp] <<= (sal_Int32) GetStdPrecision();
+ pValues[nProp] <<= static_cast<sal_Int32>(GetStdPrecision());
break;
case SCCALCOPT_CASESENSITIVE:
// content is reversed
@@ -358,7 +358,7 @@ IMPL_LINK_NOARG(ScDocCfg, LayoutCommitHdl, ScLinkConfigItem&, void)
// TabDistance in ScDocOptions is in twips
// use only even numbers, so defaults don't get changed
// by modifying other settings in the same config item
- pValues[nProp] <<= (sal_Int32) TwipsToEvenHMM( GetTabDistance() );
+ pValues[nProp] <<= static_cast<sal_Int32>(TwipsToEvenHMM( GetTabDistance() ));
break;
}
}