Kaydet (Commit) bf7b7028 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1267698 Uninitialized scalar field

Change-Id: I79974d276a8f7f856dbf09b14b06ce3b1bb418f0
üst 51af2166
...@@ -225,11 +225,15 @@ void SbStdFont::PropName( SbxVariable* pVar, SbxArray*, bool bWrite ) ...@@ -225,11 +225,15 @@ void SbStdFont::PropName( SbxVariable* pVar, SbxArray*, bool bWrite )
} }
} }
TYPEINIT1( SbStdFont, SbxObject ); TYPEINIT1( SbStdFont, SbxObject );
SbStdFont::SbStdFont() : SbStdFont::SbStdFont()
SbxObject( OUString("Font") ) : SbxObject( OUString("Font") )
, bBold(false)
, bItalic(false)
, bStrikeThrough(false)
, bUnderline(false)
, nSize(0)
{ {
// Properties // Properties
SbxVariable* p = Make( OUString("Bold"), SbxCLASS_PROPERTY, SbxVARIANT ); SbxVariable* p = Make( OUString("Bold"), SbxCLASS_PROPERTY, SbxVARIANT );
...@@ -258,14 +262,11 @@ SbStdFont::~SbStdFont() ...@@ -258,14 +262,11 @@ SbStdFont::~SbStdFont()
{ {
} }
SbxVariable* SbStdFont::Find( const OUString& rName, SbxClassType t ) SbxVariable* SbStdFont::Find( const OUString& rName, SbxClassType t )
{ {
return SbxObject::Find( rName, t ); return SbxObject::Find( rName, t );
} }
void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
const SfxHint& rHint, const TypeId& rHintType ) const SfxHint& rHint, const TypeId& rHintType )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment