Changed GetFrameState() and GetFrameType() to use pointer arguments instead of

references
This commit is contained in:
troy@netscape.com
1999-02-10 04:17:06 +00:00
parent 710818c754
commit 18893d3961
20 changed files with 44 additions and 40 deletions

View File

@@ -1223,9 +1223,10 @@ nsFrame::GetFrameForPoint(const nsPoint& aPoint, nsIFrame** aFrame)
// Resize and incremental reflow
NS_IMETHODIMP
nsFrame::GetFrameState(nsFrameState& aResult)
nsFrame::GetFrameState(nsFrameState* aResult)
{
aResult = mState;
NS_PRECONDITION(nsnull != aResult, "null OUT parameter pointer");
*aResult = mState;
return NS_OK;
}
@@ -1506,9 +1507,10 @@ NS_IMETHODIMP nsFrame::GetWindow(nsIWidget*& aWindow) const
}
NS_IMETHODIMP
nsFrame::GetFrameType(nsIAtom*& aType) const
nsFrame::GetFrameType(nsIAtom** aType) const
{
aType = nsnull;
NS_PRECONDITION(nsnull != aType, "null OUT parameter pointer");
*aType = nsnull;
return NS_OK;
}