Region::validate() cannot be called from addRectUnchecked()
addRectUnchecked() is allowed to be in an invalid state temporarily. Change-Id: I6f5162b5c49f378978c070a77abba35023fe918c
This commit is contained in:
parent
8df840aa76
commit
9ca6491bb7
@ -114,10 +114,6 @@ void Region::addRectUnchecked(int l, int t, int r, int b)
|
|||||||
Rect rect(l,t,r,b);
|
Rect rect(l,t,r,b);
|
||||||
size_t where = mStorage.size() - 1;
|
size_t where = mStorage.size() - 1;
|
||||||
mStorage.insertAt(rect, where, 1);
|
mStorage.insertAt(rect, where, 1);
|
||||||
|
|
||||||
#if VALIDATE_REGIONS
|
|
||||||
validate(*this, "addRectUnchecked");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user