[Libreoffice-commits] core.git: basic/source
Caolán McNamara
caolanm at redhat.com
Fri Jan 30 12:53:32 PST 2015
basic/source/runtime/stdobj1.cxx | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
New commits:
commit bf7b7028147100cea7edf7face689bfc4ba03214
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jan 30 20:52:52 2015 +0000
coverity#1267698 Uninitialized scalar field
Change-Id: I79974d276a8f7f856dbf09b14b06ce3b1bb418f0
diff --git a/basic/source/runtime/stdobj1.cxx b/basic/source/runtime/stdobj1.cxx
index 3f52a8a..e64db76 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 )
{
More information about the Libreoffice-commits
mailing list