diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-28 04:53:40 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-08-28 04:55:33 +0900 |
commit | 7673a08e7200227b9dbcb7ee8706064f55013c44 (patch) | |
tree | 10fb90c8af998e297b70c610e26b95144097a96d /vcl | |
parent | d00e125cbe33da88b881d177cbc09a9045d32349 (diff) |
sal_Bool to bool
Change-Id: I63a05b7ba0954dbc18932de9cbdea4f0c1a18422
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/impvect.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/impvect.cxx b/vcl/source/gdi/impvect.cxx index de4a9f975d70..d427ba4dab9b 100644 --- a/vcl/source/gdi/impvect.cxx +++ b/vcl/source/gdi/impvect.cxx @@ -82,18 +82,18 @@ struct ImplColorSet { BitmapColor maColor; sal_uInt16 mnIndex; - sal_Bool mbSet; + bool mbSet; - sal_Bool operator<( const ImplColorSet& rSet ) const; - sal_Bool operator>( const ImplColorSet& rSet ) const; + bool operator<( const ImplColorSet& rSet ) const; + bool operator>( const ImplColorSet& rSet ) const; }; -inline sal_Bool ImplColorSet::operator<( const ImplColorSet& rSet ) const +inline bool ImplColorSet::operator<( const ImplColorSet& rSet ) const { return( mbSet && ( !rSet.mbSet || ( maColor.GetLuminance() > rSet.maColor.GetLuminance() ) ) ); } -inline sal_Bool ImplColorSet::operator>( const ImplColorSet& rSet ) const +inline bool ImplColorSet::operator>( const ImplColorSet& rSet ) const { return( !mbSet || ( rSet.mbSet && maColor.GetLuminance() < rSet.maColor.GetLuminance() ) ); } @@ -675,7 +675,7 @@ sal_Bool ImplVectorizer::ImplVectorize( const Bitmap& rColorBmp, GDIMetaFile& rM for( long nY = 0L; nY < nHeight; nY++ ) for( long nX = 0L; nX < nWidth; nX++ ) - pColorSet[ pRAcc->GetPixel( nY, nX ).GetIndex() ].mbSet = 1; + pColorSet[ pRAcc->GetPixel( nY, nX ).GetIndex() ].mbSet = true; qsort( pColorSet, 256, sizeof( ImplColorSet ), ImplColorSetCmpFnc ); |