loplugin:literaltoboolconversion
Change-Id: I0c444f2e81e2e0ac9d6969f674ec3da013427cee
This commit is contained in:
@@ -579,7 +579,7 @@ void WinMtfOutput::SelectObject( sal_Int32 nIndex )
|
||||
break;
|
||||
case NULL_BRUSH :
|
||||
{
|
||||
pGDIObj->Set( GDI_BRUSH, new WinMtfFillStyle( Color( COL_TRANSPARENT ), sal_True ) );
|
||||
pGDIObj->Set( GDI_BRUSH, new WinMtfFillStyle( Color( COL_TRANSPARENT ), true ) );
|
||||
}
|
||||
break;
|
||||
case WHITE_PEN :
|
||||
@@ -987,7 +987,7 @@ sal_uInt32 WinMtfOutput::SetRasterOp( sal_uInt32 nRasterOp )
|
||||
{
|
||||
aNopFillStyle = maFillStyle;
|
||||
aNopLineStyle = maLineStyle;
|
||||
maFillStyle = WinMtfFillStyle( Color( COL_TRANSPARENT ), sal_True );
|
||||
maFillStyle = WinMtfFillStyle( Color( COL_TRANSPARENT ), true );
|
||||
maLineStyle = WinMtfLineStyle( Color( COL_TRANSPARENT ), sal_True );
|
||||
mbNopMode = sal_True;
|
||||
}
|
||||
|
@@ -708,7 +708,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
|
||||
aBmp.ReleaseAccess( pBmp );
|
||||
}
|
||||
Color aColor( (sal_uInt8)( nRed / nCount ), (sal_uInt8)( nGreen / nCount ), (sal_uInt8)( nBlue / nCount ) );
|
||||
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( aColor, sal_False ) );
|
||||
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( aColor, false ) );
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -728,13 +728,13 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
|
||||
|
||||
case W_META_CREATEBRUSH:
|
||||
{
|
||||
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( Color( COL_WHITE ), sal_False ) );
|
||||
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( Color( COL_WHITE ), false ) );
|
||||
}
|
||||
break;
|
||||
|
||||
case W_META_CREATEPATTERNBRUSH:
|
||||
{
|
||||
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( Color( COL_WHITE ), sal_False ) );
|
||||
pOut->CreateObject( GDI_BRUSH, new WinMtfFillStyle( Color( COL_WHITE ), false ) );
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user