Changed GetNextSibling() to use a pointer argument instead of a reference

This commit is contained in:
troy@netscape.com
1999-02-10 06:13:38 +00:00
parent 655e2cab93
commit 87805c7a92
55 changed files with 548 additions and 546 deletions

View File

@@ -1576,9 +1576,10 @@ NS_IMETHODIMP nsFrame::GetAutoMarginSize(PRUint8 aSide, nscoord& aSize) const
// Sibling pointer used to link together frames
NS_IMETHODIMP nsFrame::GetNextSibling(nsIFrame*& aNextSibling) const
NS_IMETHODIMP nsFrame::GetNextSibling(nsIFrame** aNextSibling) const
{
aNextSibling = mNextSibling;
NS_PRECONDITION(nsnull != aNextSibling, "null OUT parameter pointer");
*aNextSibling = mNextSibling;
return NS_OK;
}
@@ -1777,7 +1778,7 @@ nsFrame::DumpBaseRegressionData(FILE* out, PRInt32 aIndent)
aIndent++;
while (nsnull != kid) {
kid->DumpRegressionData(out, aIndent);
kid->GetNextSibling(kid);
kid->GetNextSibling(&kid);
}
aIndent--;
IndentBy(out, aIndent);
@@ -1833,7 +1834,7 @@ nsFrame::SetSelectedContentOffsets(PRBool aSelected, PRInt32 aBeginContentOffset
aForceRedraw , aTracker, aActualSelected);
if (NS_SUCCEEDED(result) && aActualSelected)
return result; //done.
result |= child->GetNextSibling(child);
result |= child->GetNextSibling(&child);
}
return result;
}
@@ -1956,7 +1957,7 @@ static void RefreshAllContentFrames(nsIFrame * aFrame, nsIContent * aContent)
aFrame->FirstChild(nsnull, &aFrame);
while (aFrame) {
RefreshAllContentFrames(aFrame, aContent);
aFrame->GetNextSibling(aFrame);
aFrame->GetNextSibling(&aFrame);
}
}