summaryrefslogtreecommitdiff
path: root/forms/source/component/Date.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/Date.cxx')
-rw-r--r--forms/source/component/Date.cxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/forms/source/component/Date.cxx b/forms/source/component/Date.cxx
index bc71c5de50f1..8ff8a537dc68 100644
--- a/forms/source/component/Date.cxx
+++ b/forms/source/component/Date.cxx
@@ -88,9 +88,11 @@ Sequence<Type> ODateModel::_getTypes()
//------------------------------------------------------------------
ODateModel::ODateModel(const Reference<XComponentContext>& _rxFactory)
- :OEditBaseModel( _rxFactory, VCL_CONTROLMODEL_DATEFIELD, FRM_SUN_CONTROL_DATEFIELD, sal_True, sal_True )
- // use the old control name for compytibility reasons
- ,OLimitedFormats( _rxFactory, FormComponentType::DATEFIELD )
+ : OEditBaseModel(_rxFactory, VCL_CONTROLMODEL_DATEFIELD,
+ FRM_SUN_CONTROL_DATEFIELD, sal_True, sal_True)
+ // use the old control name for compytibility reasons
+ , OLimitedFormats(_rxFactory, FormComponentType::DATEFIELD)
+ , m_bDateTimeField(false)
{
m_nClassId = FormComponentType::DATEFIELD;
initValueProperty( PROPERTY_DATE, PROPERTY_ID_DATE );
@@ -112,8 +114,9 @@ ODateModel::ODateModel(const Reference<XComponentContext>& _rxFactory)
//------------------------------------------------------------------------------
ODateModel::ODateModel( const ODateModel* _pOriginal, const Reference<XComponentContext>& _rxFactory )
- :OEditBaseModel( _pOriginal, _rxFactory )
- ,OLimitedFormats( _rxFactory, FormComponentType::DATEFIELD )
+ : OEditBaseModel(_pOriginal, _rxFactory)
+ , OLimitedFormats(_rxFactory, FormComponentType::DATEFIELD)
+ , m_bDateTimeField(false)
{
setAggregateSet( m_xAggregateFastSet, getOriginalHandle( PROPERTY_ID_DATEFORMAT ) );
}