Change NS_COMFALSE to NS_ERROR_ABORT throughout the space manager.

r=smfr for these two files, and r=scc for the previous file
This commit is contained in:
braddr%puremagic.com 1999-10-22 06:49:50 +00:00
parent cf16f4e92d
commit 6740a78de2
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ public:
/**
* Returns the y-most of the bottommost band or 0 if there are no bands.
*
* @return NS_OK if there are bands and NS_COMFALSE if there are
* @return NS_OK if there are bands and NS_ERROR_ABORT if there are
* no bands
*/
NS_IMETHOD YMost(nscoord& aYMost) const = 0;

View File

@ -728,7 +728,7 @@ PRBool MySpaceManager::TestGetBandData()
NS_ASSERTION(mBandList.IsEmpty(), "clear regions failed");
// Make sure YMost() returns the correct result
if (YMost(yMost) != NS_COMFALSE) {
if (NS_ERROR_ABORT != YMost(yMost)) {
printf("TestGetBandData: YMost() returned wrong result (#1)\n");
return PR_FALSE;
}
@ -744,7 +744,7 @@ PRBool MySpaceManager::TestGetBandData()
NS_ASSERTION(NS_SUCCEEDED(status), "unexpected status");
// Verify that YMost() is correct
if ((YMost(yMost) != NS_OK) || (yMost != 200)) {
if ((NS_OK != YMost(yMost)) || (yMost != 200)) {
printf("TestGetBandData: YMost() returned wrong value (#2)\n");
return PR_FALSE;
}