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 <[email protected]>
This commit is contained in:
committed by
Jérôme Duval
parent
3340ebea4c
commit
f0a1a07c73
@@ -65,7 +65,7 @@ class BRegion::Support {
|
|||||||
static int XXorRegion(const BRegion* sra,
|
static int XXorRegion(const BRegion* sra,
|
||||||
const BRegion* srb, BRegion* dr);
|
const BRegion* srb, BRegion* dr);
|
||||||
|
|
||||||
static int XPointInRegion(const BRegion* region,
|
static bool XPointInRegion(const BRegion* region,
|
||||||
int x, int y);
|
int x, int y);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|||||||
@@ -1542,7 +1542,7 @@ BRegion::Support::XXorRegion(const BRegion* sra, const BRegion* srb,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
bool
|
||||||
BRegion::Support::XPointInRegion(
|
BRegion::Support::XPointInRegion(
|
||||||
const BRegion* pRegion,
|
const BRegion* pRegion,
|
||||||
int x, int y)
|
int x, int y)
|
||||||
@@ -1570,7 +1570,7 @@ BRegion::Support::XRectInRegion(
|
|||||||
register clipping_rect* pbox;
|
register clipping_rect* pbox;
|
||||||
register clipping_rect* pboxEnd;
|
register clipping_rect* pboxEnd;
|
||||||
register const clipping_rect* prect = ▭
|
register const clipping_rect* prect = ▭
|
||||||
int partIn, partOut;
|
bool partIn, partOut;
|
||||||
|
|
||||||
int rx = prect->left;
|
int rx = prect->left;
|
||||||
int ry = prect->top;
|
int ry = prect->top;
|
||||||
|
|||||||
Reference in New Issue
Block a user