diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 10:46:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 12:40:27 +0000 |
commit | ca7c3debbd38d6ac9661cf0ef3abfc073ebaef23 (patch) | |
tree | 03d7c0af506ea427123e6347f5287de667ffb9c3 /forms | |
parent | 466e8bd416bfa1e64c36e12c44907bef1118f44d (diff) |
coverity#738652 Uninitialized scalar field
Change-Id: Ie191910d49ee9f622bc407a768e79671698d2ac3
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/Date.cxx | 13 |
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 ) ); } |