summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-30 20:52:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-30 20:52:52 +0000
commitbf7b7028147100cea7edf7face689bfc4ba03214 (patch)
treeb44a6259bf696ac7992ba6a09c6793473a3d45ab /basic
parent51af2166d16ea5d47ee9b92ada2d95adff168bb2 (diff)
coverity#1267698 Uninitialized scalar field
Change-Id: I79974d276a8f7f856dbf09b14b06ce3b1bb418f0
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/stdobj1.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx
index 3f52a8a19b2a..e64db766572a 100644
--- a/basic/source/runtime/stdobj1.cxx
+++ b/basic/source/runtime/stdobj1.cxx
@@ -225,11 +225,15 @@ void SbStdFont::PropName( SbxVariable* pVar, SbxArray*, bool bWrite )
}
}
-
TYPEINIT1( SbStdFont, SbxObject );
-SbStdFont::SbStdFont() :
- SbxObject( OUString("Font") )
+SbStdFont::SbStdFont()
+ : SbxObject( OUString("Font") )
+ , bBold(false)
+ , bItalic(false)
+ , bStrikeThrough(false)
+ , bUnderline(false)
+ , nSize(0)
{
// Properties
SbxVariable* p = Make( OUString("Bold"), SbxCLASS_PROPERTY, SbxVARIANT );
@@ -258,14 +262,11 @@ SbStdFont::~SbStdFont()
{
}
-
SbxVariable* SbStdFont::Find( const OUString& rName, SbxClassType t )
{
return SbxObject::Find( rName, t );
}
-
-
void SbStdFont::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
const SfxHint& rHint, const TypeId& rHintType )
{