summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/EditBase.cxx2
-rw-r--r--forms/source/component/Numeric.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/EditBase.cxx b/forms/source/component/EditBase.cxx
index 261efa16073c..99ecfdb316d1 100644
--- a/forms/source/component/EditBase.cxx
+++ b/forms/source/component/EditBase.cxx
@@ -189,7 +189,7 @@ void OEditBaseModel::read(const Reference<XObjectInputStream>& _rxInStream)
else if ((nAnyMask & DEFAULT_DOUBLE) == DEFAULT_DOUBLE)
{
double fValue = _rxInStream->readDouble();
- m_aDefault <<= (double)fValue;
+ m_aDefault <<= fValue;
}
else if ((nAnyMask & DEFAULT_TIME) == DEFAULT_TIME)
{
diff --git a/forms/source/component/Numeric.cxx b/forms/source/component/Numeric.cxx
index ab9ab0c78c30..f537cff50bc5 100644
--- a/forms/source/component/Numeric.cxx
+++ b/forms/source/component/Numeric.cxx
@@ -147,7 +147,7 @@ bool ONumericModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
Any ONumericModel::translateDbColumnToControlValue()
{
- m_aSaveValue <<= (double)m_xColumn->getDouble();
+ m_aSaveValue <<= m_xColumn->getDouble();
if ( m_xColumn->wasNull() )
m_aSaveValue.clear();