RegionSupport: Fix PVS 338-346
Fix 'true / false' value is implicitly cast to the integer type. Change-Id: I2f72fcd34d2d97d20e2a98ed5efe25919a485c9d Reviewed-on: https://review.haiku-os.org/739 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
This commit is contained in:
parent
3340ebea4c
commit
f0a1a07c73
@ -65,7 +65,7 @@ class BRegion::Support {
|
||||
static int XXorRegion(const BRegion* sra,
|
||||
const BRegion* srb, BRegion* dr);
|
||||
|
||||
static int XPointInRegion(const BRegion* region,
|
||||
static bool XPointInRegion(const BRegion* region,
|
||||
int x, int y);
|
||||
|
||||
enum {
|
||||
|
@ -1542,7 +1542,7 @@ BRegion::Support::XXorRegion(const BRegion* sra, const BRegion* srb,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
bool
|
||||
BRegion::Support::XPointInRegion(
|
||||
const BRegion* pRegion,
|
||||
int x, int y)
|
||||
@ -1570,7 +1570,7 @@ BRegion::Support::XRectInRegion(
|
||||
register clipping_rect* pbox;
|
||||
register clipping_rect* pboxEnd;
|
||||
register const clipping_rect* prect = ▭
|
||||
int partIn, partOut;
|
||||
bool partIn, partOut;
|
||||
|
||||
int rx = prect->left;
|
||||
int ry = prect->top;
|
||||
|
Loading…
Reference in New Issue
Block a user