diff options
Diffstat (limited to 'forms/source/xforms/datatypes.cxx')
-rw-r--r-- | forms/source/xforms/datatypes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/datatypes.cxx b/forms/source/xforms/datatypes.cxx index da3460edb5ea..c0b1a978a3e9 100644 --- a/forms/source/xforms/datatypes.cxx +++ b/forms/source/xforms/datatypes.cxx @@ -868,7 +868,7 @@ namespace xforms bool OShortIntegerType::_getValue( const OUString& value, double& fValue ) { - fValue = (double)(sal_Int16)value.toInt32(); + fValue = static_cast<double>(static_cast<sal_Int16>(value.toInt32())); // TODO/eforms // this does not care for values which do not fit into a sal_Int16, but simply // cuts them down. A better implementation here should probably return <FALSE/> |