diff options
Diffstat (limited to 'svx/source/form/formcontrolfactory.cxx')
-rw-r--r-- | svx/source/form/formcontrolfactory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/form/formcontrolfactory.cxx b/svx/source/form/formcontrolfactory.cxx index bd5a1596764a..f0512d2e85b3 100644 --- a/svx/source/form/formcontrolfactory.cxx +++ b/svx/source/form/formcontrolfactory.cxx @@ -602,7 +602,7 @@ namespace svxform // both the minimum and the maximum value properties can be either Long or Double Property aProperty = xModelPSI->getPropertyByName( FM_PROP_VALUEMIN ); if ( aProperty.Type.getTypeClass() == TypeClass_DOUBLE ) - aValue <<= (double)nMinValue; + aValue <<= static_cast<double>(nMinValue); else if ( aProperty.Type.getTypeClass() == TypeClass_LONG ) aValue <<= nMinValue; else @@ -614,7 +614,7 @@ namespace svxform // both the minimum and the maximum value properties can be either Long or Double aProperty = xModelPSI->getPropertyByName( FM_PROP_VALUEMAX ); if ( aProperty.Type.getTypeClass() == TypeClass_DOUBLE ) - aValue <<= (double)nMaxValue; + aValue <<= static_cast<double>(nMaxValue); else if ( aProperty.Type.getTypeClass() == TypeClass_LONG ) aValue <<= nMaxValue; else |