loplugin:implicitboolconversion clean-up
Change-Id: Ia175eef112cd79019be26a6a068992d796cb2faf
This commit is contained in:
@@ -306,9 +306,9 @@ void Tag::writeMatrix( SvStream& rOut, const ::basegfx::B2DHomMatrix& rMatrix )
|
|||||||
|
|
||||||
BitStream aBits;
|
BitStream aBits;
|
||||||
|
|
||||||
const sal_uInt8 bHasScale = rMatrix.get(0, 0) != 1.0 || rMatrix.get(1, 1) != 1.0;
|
const bool bHasScale = rMatrix.get(0, 0) != 1.0 || rMatrix.get(1, 1) != 1.0;
|
||||||
|
|
||||||
aBits.writeUB( bHasScale, 1 );
|
aBits.writeUB( int(bHasScale), 1 );
|
||||||
|
|
||||||
if( bHasScale )
|
if( bHasScale )
|
||||||
{
|
{
|
||||||
@@ -319,9 +319,9 @@ void Tag::writeMatrix( SvStream& rOut, const ::basegfx::B2DHomMatrix& rMatrix )
|
|||||||
aBits.writeFB( getFixed( rMatrix.get(1, 1) ), nScaleBits ); // Scale Y
|
aBits.writeFB( getFixed( rMatrix.get(1, 1) ), nScaleBits ); // Scale Y
|
||||||
}
|
}
|
||||||
|
|
||||||
const sal_uInt8 bHasRotate = rMatrix.get(0, 1) != 0.0 || rMatrix.get(1, 0) != 0.0;
|
const bool bHasRotate = rMatrix.get(0, 1) != 0.0 || rMatrix.get(1, 0) != 0.0;
|
||||||
|
|
||||||
aBits.writeUB( bHasRotate, 1 );
|
aBits.writeUB( int(bHasRotate), 1 );
|
||||||
|
|
||||||
if( bHasRotate )
|
if( bHasRotate )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user