coverity#984086 Uninitialized scalar field
Change-Id: Iba162efd0b582541199f343b64ac3b8c59dcc3d8
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user