coverity#984086 Uninitialized scalar field

Change-Id: Iba162efd0b582541199f343b64ac3b8c59dcc3d8
This commit is contained in:
Caolán McNamara
2014-05-23 10:39:58 +01:00
parent 8eec77cbbc
commit 77f79f29f0

View File

@@ -114,6 +114,8 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
, pGraphicObject(NULL) , pGraphicObject(NULL)
, nStart(0) , nStart(0)
, nStyle(0) , nStyle(0)
, nScale(0)
, nJustify(0)
{ {
rStrm.ReadUInt16( nStyle ); rStrm.ReadUInt16( nStyle );
@@ -149,7 +151,7 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
rStrm.ReadUInt16( nStart ); rStrm.ReadUInt16( nStart );
rStrm.ReadUChar( nJustify ); rStrm.ReadUChar( nJustify );
char cTmpSymbol; char cTmpSymbol(0);
rStrm.ReadChar( cTmpSymbol ); rStrm.ReadChar( cTmpSymbol );
//convert single byte to unicode //convert single byte to unicode
cSymbol = OUString(&cTmpSymbol, 1, aFont.GetCharSet()).toChar(); cSymbol = OUString(&cTmpSymbol, 1, aFont.GetCharSet()).toChar();