Change NS_COMFALSE instances to NS_ERROR_ABORT's

git-svn-id: svn://10.0.0.236/trunk@51516 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
braddr%puremagic.com
1999-10-22 05:32:31 +00:00
parent e83d506ed5
commit ef38d2fd9c
2 changed files with 6 additions and 6 deletions

View File

@@ -114,7 +114,7 @@ nsSpaceManager::YMost(nscoord& aYMost) const
if (mBandList.IsEmpty()) {
aYMost = 0;
result = NS_COMFALSE;
result = NS_ERROR_ABORT;
} else {
BandRect* lastRect = mBandList.Tail();
@@ -260,7 +260,7 @@ nsSpaceManager::GetBandData(nscoord aYOffset,
// band, then all the space is available
nscoord yMost;
if ((NS_COMFALSE == YMost(yMost)) || (y >= yMost)) {
if ((NS_ERROR_ABORT == YMost(yMost)) || (y >= yMost)) {
// All the requested space is available
aBandData.mCount = 1;
aBandData.mTrapezoids[0] = nsRect(0, aYOffset, aMaxSize.width, aMaxSize.height);
@@ -611,7 +611,7 @@ nsSpaceManager::InsertBandRect(BandRect* aBandRect)
// If there are no existing bands or this rect is below the bottommost
// band, then add a new band
nscoord yMost;
if ((NS_COMFALSE == YMost(yMost)) || (aBandRect->mTop >= yMost)) {
if ((NS_ERROR_ABORT == YMost(yMost)) || (aBandRect->mTop >= yMost)) {
mBandList.Append(aBandRect);
return;
}