diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-06-07 02:26:01 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-06-07 02:27:53 +0900 |
commit | 50a4018d0d95652b73175f37740c9c7dd13ca4e0 (patch) | |
tree | e9ea999d8e8ba2937507a53a2ea959cca88b74cc /vcl/source/filter/wmf/winmtf.cxx | |
parent | bd40bfd897f193857de10f64bbc47909c4ea5757 (diff) |
sal_Bool to bool
Change-Id: I58efb9d026203c77d3806552bd4280a4d16d5111
Diffstat (limited to 'vcl/source/filter/wmf/winmtf.cxx')
-rw-r--r-- | vcl/source/filter/wmf/winmtf.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx index c8c6652af667..43aaf5e13e26 100644 --- a/vcl/source/filter/wmf/winmtf.cxx +++ b/vcl/source/filter/wmf/winmtf.cxx @@ -268,16 +268,16 @@ WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont ) #ifdef WIN_MTF_ASSERT void WinMtfAssertHandler( const sal_Char* pAction, sal_uInt32 nFlags ) { - static sal_Bool bOnlyOnce; + static bool bOnlyOnce; static sal_Int32 nAssertCount; if ( nFlags & WIN_MTF_ASSERT_INIT ) nAssertCount = 0; if ( nFlags & WIN_MTF_ASSERT_ONCE ) - bOnlyOnce = sal_True; + bOnlyOnce = true; if ( nFlags & WIN_MTF_ASSERT_MIFE ) { - if ( ( nAssertCount == 0 ) || ( bOnlyOnce == sal_False ) ) + if ( ( nAssertCount == 0 ) || !bOnlyOnce ) { OStringBuffer aText("WMF/EMF Import: "); if (pAction) @@ -1469,10 +1469,10 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry mpGDIMetaFile->AddAction( new MetaLayoutModeAction( mnTextLayoutMode ) ); } SetGfxMode( nGfxMode ); - sal_Bool bChangeFont = sal_False; + bool bChangeFont = false; if ( mnLatestTextAlign != mnTextAlign ) { - bChangeFont = sal_True; + bChangeFont = true; mnLatestTextAlign = mnTextAlign; TextAlign eTextAlign; if ( ( mnTextAlign & TA_BASELINE) == TA_BASELINE ) @@ -1485,24 +1485,24 @@ void WinMtfOutput::DrawText( Point& rPosition, String& rText, sal_Int32* pDXArry } if ( maLatestTextColor != maTextColor ) { - bChangeFont = sal_True; + bChangeFont = true; maLatestTextColor = maTextColor; mpGDIMetaFile->AddAction( new MetaTextColorAction( maTextColor ) ); } - sal_Bool bChangeFillColor = sal_False; + bool bChangeFillColor = false; if ( maLatestBkColor != maBkColor ) { - bChangeFillColor = sal_True; + bChangeFillColor = true; maLatestBkColor = maBkColor; } if ( mnLatestBkMode != mnBkMode ) { - bChangeFillColor = sal_True; + bChangeFillColor = true; mnLatestBkMode = mnBkMode; } if ( bChangeFillColor ) { - bChangeFont = sal_True; + bChangeFont = true; mpGDIMetaFile->AddAction( new MetaTextFillColorAction( maFont.GetFillColor(), !maFont.IsTransparent() ) ); } Font aTmp( maFont ); @@ -1708,7 +1708,7 @@ void WinMtfOutput::ResolveBitmapActions( BSaveStructList_impl& rSaveList ) } else { - sal_Bool bDrawn = sal_False; + bool bDrawn = false; if ( i == nObjectStartIndex ) // optimizing, sometimes it is possible to create just one transparent bitmap { @@ -1729,7 +1729,7 @@ void WinMtfOutput::ResolveBitmapActions( BSaveStructList_impl& rSaveList ) Bitmap aMask( pSave->aBmp ); aMask.Invert(); BitmapEx aBmpEx( pSave2->aBmp, aMask ); ImplDrawBitmap( aPos, aSize, aBmpEx ); - bDrawn = sal_True; + bDrawn = true; i++; } // #i20085# This is just the other way @@ -1740,7 +1740,7 @@ void WinMtfOutput::ResolveBitmapActions( BSaveStructList_impl& rSaveList ) Bitmap aMask( pSave->aBmp ); BitmapEx aBmpEx( pSave2->aBmp, aMask ); ImplDrawBitmap( aPos, aSize, aBmpEx ); - bDrawn = sal_True; + bDrawn = true; i++; } } |