warning fix for Linux, shadowed local variable

r: kin
This commit is contained in:
anthonyd%netscape.com 2000-06-08 02:51:58 +00:00
parent 497076d9d3
commit 72e45aa8b5
2 changed files with 8 additions and 8 deletions

View File

@ -1781,14 +1781,14 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber, nscoord aX, nsIFrame** aF
{//only do this once
nsRect parentRect;
nsRect& parentRectRef = parentRect;
nsIFrame* parentFrame;
nsIFrame* tempParentFrame;
rv = tempFrame->GetParent(&parentFrame);
rv = tempFrame->GetParent(&tempParentFrame);
if(NS_FAILED(rv) || !parentFrame)
if(NS_FAILED(rv) || !tempParentFrame)
return rv?rv:NS_ERROR_FAILURE;
parentFrame->GetRect(parentRectRef);
tempParentFrame->GetRect(parentRectRef);
aX -= parentRect.x;
gotParentRect = PR_TRUE;
}

View File

@ -1781,14 +1781,14 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber, nscoord aX, nsIFrame** aF
{//only do this once
nsRect parentRect;
nsRect& parentRectRef = parentRect;
nsIFrame* parentFrame;
nsIFrame* tempParentFrame;
rv = tempFrame->GetParent(&parentFrame);
rv = tempFrame->GetParent(&tempParentFrame);
if(NS_FAILED(rv) || !parentFrame)
if(NS_FAILED(rv) || !tempParentFrame)
return rv?rv:NS_ERROR_FAILURE;
parentFrame->GetRect(parentRectRef);
tempParentFrame->GetRect(parentRectRef);
aX -= parentRect.x;
gotParentRect = PR_TRUE;
}