diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 10:13:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 11:14:35 +0000 |
commit | 7f0f6f3e25a950207f4cb5ce2a56f1b99c05a2b8 (patch) | |
tree | 12c621898c95c5cebb523b8e6bc1b5c1c71f0f9b | |
parent | d6868cfa1b72a2a4dd7f960880b1f5a3034c939e (diff) |
coverity#705453 Array compared against 0
Change-Id: Id8d4822b881dd75b86515af6c2507d0187581c42
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index ff49237697da..b0bbc4a68111 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -658,7 +658,7 @@ void SwWW8ImplReader::SetAnlvStrings(SwNumFmt &rNum, WW8_ANLV &rAV, rNum.SetBulletFont( &aFont ); // take only the very first character - if( rAV.cbTextBefore || rAV.cbTextAfter) + if (SVBT8ToByte(rAV.cbTextBefore) || SVBT8ToByte(rAV.cbTextAfter)) rNum.SetBulletChar( sTxt[ 0 ] ); else rNum.SetBulletChar( 0x2190 ); @@ -667,12 +667,12 @@ void SwWW8ImplReader::SetAnlvStrings(SwNumFmt &rNum, WW8_ANLV &rAV, } if( bInsert ) { - if( rAV.cbTextBefore ) + if (SVBT8ToByte(rAV.cbTextBefore)) { OUString sP( sTxt.copy( 0, SVBT8ToByte( rAV.cbTextBefore ) ) ); rNum.SetPrefix( sP ); } - if( SVBT8ToByte( rAV.cbTextAfter ) ) + if (SVBT8ToByte(rAV.cbTextAfter)) { OUString sP( rNum.GetSuffix() ); sP += sTxt.copy( SVBT8ToByte( rAV.cbTextBefore ), |