Kaydet (Commit) 0f2a8ec5 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#707765 Uninitialized scalar field

Change-Id: I35194385cc2f5d02a93ade0e8ab40fb77eba7e6e
üst bb688f72
......@@ -42,9 +42,6 @@ TextRanger::TextRanger( const basegfx::B2DPolyPolygon& rPolyPolygon,
bInner( bInnr ),
bVertical( bVert )
{
#ifdef DBG_UTIL
bFlag3 = bFlag4 = bFlag5 = bFlag6 = bFlag7 = sal_False;
#endif
sal_uInt32 nCount(rPolyPolygon.count());
mpPolyPolygon = new PolyPolygon( (sal_uInt16)nCount );
......
......@@ -63,11 +63,7 @@ class EDITENG_DLLPUBLIC TextRanger
sal_Bool bInner : 1; // TRUE: Objekt inline (EditEngine);
// FALSE: Objekt flow (StarWriter);
sal_Bool bVertical :1; // for vertical writing mode
sal_Bool bFlag3 :1;
sal_Bool bFlag4 :1;
sal_Bool bFlag5 :1;
sal_Bool bFlag6 :1;
sal_Bool bFlag7 :1;
TextRanger( const TextRanger& ); // not implemented
const Rectangle& _GetBoundRect();
public:
......@@ -93,16 +89,6 @@ public:
void SetUpper( sal_uInt16 nNew ){ nUpper = nNew; }
void SetLower( sal_uInt16 nNew ){ nLower = nNew; }
void SetVertical( sal_Bool bNew );
sal_Bool IsFlag3() const { return bFlag3; }
void SetFlag3( sal_Bool bNew ) { bFlag3 = bNew; }
sal_Bool IsFlag4() const { return bFlag4; }
void SetFlag4( sal_Bool bNew ) { bFlag4 = bNew; }
sal_Bool IsFlag5() const { return bFlag5; }
void SetFlag5( sal_Bool bNew ) { bFlag5 = bNew; }
sal_Bool IsFlag6() const { return bFlag6; }
void SetFlag6( sal_Bool bNew ) { bFlag6 = bNew; }
sal_Bool IsFlag7() const { return bFlag7; }
void SetFlag7( sal_Bool bNew ) { bFlag7 = bNew; }
};
......
......@@ -257,22 +257,7 @@ const SwRect SwContourCache::ContourRect( const SwFmt* pFmt,
pTextRanger[ 0 ]->SetLower( rULSpace.GetLower() );
delete pPolyPolygon;
// UPPER_LOWER_TEST
#ifdef DBG_UTIL
const SwViewShell* pTmpViewShell = pFmt->GetDoc()->GetCurrentViewShell();
if( pTmpViewShell )
{
sal_Bool bT2 = pTmpViewShell->GetViewOptions()->IsTest2();
sal_Bool bT6 = pTmpViewShell->GetViewOptions()->IsTest6();
if( bT2 || bT6 )
{
if( bT2 )
pTextRanger[ 0 ]->SetFlag7( sal_True );
else
pTextRanger[ 0 ]->SetFlag6( sal_True );
}
}
#endif
nPntCnt += pTextRanger[ 0 ]->GetPointCount();
while( nPntCnt > POLY_MAX && nObjCnt > POLY_MIN )
{
......
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