From 09f93567e92c9485bc802d02a3d20cd16fcebf60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 21 Feb 2014 10:41:44 +0000 Subject: [PATCH] coverity#738656 Uninitialized scalar field Change-Id: I49e3f47e318ae342738dd1de90673e2aee2bb62b --- forms/source/component/Time.cxx | 17 +++++++++-------- 1 file 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 OTimeModel::_getTypes() //------------------------------------------------------------------ //------------------------------------------------------------------ OTimeModel::OTimeModel(const Reference& _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& _rxFactory) } //------------------------------------------------------------------------------ -OTimeModel::OTimeModel( const OTimeModel* _pOriginal, const Reference& _rxFactory ) - :OEditBaseModel( _pOriginal, _rxFactory ) - ,OLimitedFormats( _rxFactory, FormComponentType::TIMEFIELD ) +OTimeModel::OTimeModel(const OTimeModel* _pOriginal, const Reference& _rxFactory) + : OEditBaseModel(_pOriginal, _rxFactory) + , OLimitedFormats(_rxFactory, FormComponentType::TIMEFIELD) + , m_bDateTimeField(false) { - setAggregateSet( m_xAggregateFastSet, getOriginalHandle( PROPERTY_ID_TIMEFORMAT ) ); }