diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 11:23:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 12:40:31 +0000 |
commit | 7dd4c9212862a79389a9dce1caf0c6e26479daff (patch) | |
tree | 60abaff00a28775bb8afd1ef27d9e5b27004ed63 /cui | |
parent | 2ff57a77d858c685b78e8206f144ae9977208e21 (diff) |
coverity#738587 Uninitialized scalar field
Change-Id: Icf9146eb541272e7219ce3bf00c296b930538835
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/cfgchart.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cui/source/options/cfgchart.cxx b/cui/source/options/cfgchart.cxx index 71e289380c0b..b128312c182c 100644 --- a/cui/source/options/cfgchart.cxx +++ b/cui/source/options/cfgchart.cxx @@ -30,12 +30,15 @@ using namespace com::sun::star; TYPEINIT1( SvxChartColorTableItem, SfxPoolItem ); SvxChartColorTable::SvxChartColorTable() -{} + : nNextElementNumber(0) +{ +} -SvxChartColorTable::SvxChartColorTable( const SvxChartColorTable & _rSource ) : - m_aColorEntries( _rSource.m_aColorEntries ), - nNextElementNumber( m_aColorEntries.size() + 1 ) -{} +SvxChartColorTable::SvxChartColorTable(const SvxChartColorTable & _rSource) + : m_aColorEntries(_rSource.m_aColorEntries) + , nNextElementNumber(m_aColorEntries.size() + 1) +{ +} // accessors size_t SvxChartColorTable::size() const |