Kaydet (Commit) 303c62e2 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158446 Uninitialized scalar field

Change-Id: I66135f813adbf25c69e667f9ac0198edf7bbc12d
üst 5a476685
...@@ -86,7 +86,7 @@ class SwMultiPortion : public SwLinePortion ...@@ -86,7 +86,7 @@ class SwMultiPortion : public SwLinePortion
sal_Bool bTab1 :1; // First line tabulator sal_Bool bTab1 :1; // First line tabulator
sal_Bool bTab2 :1; // Second line includes tabulator sal_Bool bTab2 :1; // Second line includes tabulator
sal_Bool bDouble :1; // Double line sal_Bool bDouble :1; // Double line
bool bRuby :1; // Phonetics bool bRuby :1; // Phonetics
sal_Bool bBidi :1; sal_Bool bBidi :1;
sal_Bool bTop :1; // Phonetic position sal_Bool bTop :1; // Phonetic position
sal_Bool bFormatted :1; // Already formatted sal_Bool bFormatted :1; // Already formatted
...@@ -94,20 +94,31 @@ class SwMultiPortion : public SwLinePortion ...@@ -94,20 +94,31 @@ class SwMultiPortion : public SwLinePortion
sal_uInt8 nDirection:2; // Direction (0/90/180/270 degrees) sal_uInt8 nDirection:2; // Direction (0/90/180/270 degrees)
sal_Bool bFlyInCntnt:1; // Fly as character inside sal_Bool bFlyInCntnt:1; // Fly as character inside
protected: protected:
SwMultiPortion( sal_Int32 nEnd ) : pFldRest( 0 ), bTab1( sal_False ), SwMultiPortion(sal_Int32 nEnd)
bTab2( sal_False ), bDouble( sal_False ), bRuby( false ), : pFldRest(0)
bBidi( sal_False ), bFormatted( sal_False ), bFollowFld( sal_False ), , bTab1(false)
nDirection( 0 ), bFlyInCntnt( sal_False ) , bTab2(false)
{ SetWhichPor( POR_MULTI ); SetLen( nEnd ); } , bDouble(false)
inline void SetDouble() { bDouble = sal_True; } , bRuby(false)
inline void SetRuby() { bRuby = true; } , bBidi(false)
inline void SetBidi() { bBidi = sal_True; } , bTop(false)
inline void SetTop( sal_Bool bNew ) { bTop = bNew; } , bFormatted(false)
inline void SetTab1( sal_Bool bNew ) { bTab1 = bNew; } , bFollowFld(false)
inline void SetTab2( sal_Bool bNew ) { bTab2 = bNew; } , nDirection(0)
inline void SetDirection( sal_uInt8 nNew ) { nDirection = nNew; } , bFlyInCntnt(false)
inline sal_Bool GetTab1() const { return bTab1; } {
inline sal_Bool GetTab2() const { return bTab2; } SetWhichPor(POR_MULTI);
SetLen(nEnd);
}
void SetDouble() { bDouble = sal_True; }
void SetRuby() { bRuby = true; }
void SetBidi() { bBidi = sal_True; }
void SetTop( sal_Bool bNew ) { bTop = bNew; }
void SetTab1( sal_Bool bNew ) { bTab1 = bNew; }
void SetTab2( sal_Bool bNew ) { bTab2 = bNew; }
void SetDirection( sal_uInt8 nNew ) { nDirection = nNew; }
sal_Bool GetTab1() const { return bTab1; }
sal_Bool GetTab2() const { return bTab2; }
public: public:
~SwMultiPortion(); ~SwMultiPortion();
const SwLineLayout& GetRoot() const { return aRoot; } const SwLineLayout& GetRoot() const { return aRoot; }
......
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