summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-21 10:41:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-21 12:40:26 +0000
commit09f93567e92c9485bc802d02a3d20cd16fcebf60 (patch)
treee7e27747560d4c9c7d1c4987f67e3653d904b242 /forms
parentea7d4d24ae2012e9e1f798179593861c5de309cf (diff)
coverity#738656 Uninitialized scalar field
Change-Id: I49e3f47e318ae342738dd1de90673e2aee2bb62b
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/Time.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/forms/source/component/Time.cxx b/forms/source/component/Time.cxx
index b768fde13210..f98477328dfb 100644
--- a/forms/source/component/Time.cxx
+++ b/forms/source/component/Time.cxx
@@ -122,11 +122,12 @@ Sequence<Type> OTimeModel::_getTypes()
//------------------------------------------------------------------
//------------------------------------------------------------------
OTimeModel::OTimeModel(const Reference<XComponentContext>& _rxFactory)
- :OEditBaseModel( _rxFactory, VCL_CONTROLMODEL_TIMEFIELD, FRM_SUN_CONTROL_TIMEFIELD, sal_True, sal_True )
- // use the old control name for compytibility reasons
- ,OLimitedFormats( _rxFactory, FormComponentType::TIMEFIELD)
+ : OEditBaseModel(_rxFactory, VCL_CONTROLMODEL_TIMEFIELD,
+ FRM_SUN_CONTROL_TIMEFIELD, sal_True, sal_True)
+ // use the old control name for compatibility reasons
+ , OLimitedFormats(_rxFactory, FormComponentType::TIMEFIELD)
+ , m_bDateTimeField(false)
{
-
m_nClassId = FormComponentType::TIMEFIELD;
initValueProperty( PROPERTY_TIME, PROPERTY_ID_TIME );
@@ -134,11 +135,11 @@ OTimeModel::OTimeModel(const Reference<XComponentContext>& _rxFactory)
}
//------------------------------------------------------------------------------
-OTimeModel::OTimeModel( const OTimeModel* _pOriginal, const Reference<XComponentContext>& _rxFactory )
- :OEditBaseModel( _pOriginal, _rxFactory )
- ,OLimitedFormats( _rxFactory, FormComponentType::TIMEFIELD )
+OTimeModel::OTimeModel(const OTimeModel* _pOriginal, const Reference<XComponentContext>& _rxFactory)
+ : OEditBaseModel(_pOriginal, _rxFactory)
+ , OLimitedFormats(_rxFactory, FormComponentType::TIMEFIELD)
+ , m_bDateTimeField(false)
{
-
setAggregateSet( m_xAggregateFastSet, getOriginalHandle( PROPERTY_ID_TIMEFORMAT ) );
}