eliminate some build warnings. See bug 187117.

git-svn-id: svn://10.0.0.236/trunk@136426 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2003-01-16 19:44:21 +00:00
parent 32c89381cf
commit a51e000a16
4 changed files with 24 additions and 40 deletions

View File

@@ -105,11 +105,9 @@ NS_METHOD nsSplittableFrame::SetNextInFlow(nsIFrame* aFrame)
nsIFrame* nsSplittableFrame::GetFirstInFlow() const
{
nsSplittableFrame* firstInFlow;
nsSplittableFrame* prevInFlow = (nsSplittableFrame*)this;
while (prevInFlow) {
firstInFlow = prevInFlow;
prevInFlow = (nsSplittableFrame*)firstInFlow->mPrevInFlow;
nsSplittableFrame* firstInFlow = (nsSplittableFrame*)this;
while (firstInFlow->mPrevInFlow) {
firstInFlow = (nsSplittableFrame*)firstInFlow->mPrevInFlow;
}
NS_POSTCONDITION(firstInFlow, "illegal state in flow chain.");
return firstInFlow;
@@ -117,11 +115,9 @@ nsIFrame* nsSplittableFrame::GetFirstInFlow() const
nsIFrame* nsSplittableFrame::GetLastInFlow() const
{
nsSplittableFrame* lastInFlow;
nsSplittableFrame* nextInFlow = (nsSplittableFrame*)this;
while (nextInFlow) {
lastInFlow = nextInFlow;
nextInFlow = (nsSplittableFrame*)lastInFlow->mNextInFlow;
nsSplittableFrame* lastInFlow = (nsSplittableFrame*)this;
while (lastInFlow->mNextInFlow) {
lastInFlow = (nsSplittableFrame*)lastInFlow->mNextInFlow;
}
NS_POSTCONDITION(lastInFlow, "illegal state in flow chain.");
return lastInFlow;