mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
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:
parent
cf16f4e92d
commit
6740a78de2
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user