mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
warning fix for Linux, shadowed local variable
r: kin
This commit is contained in:
parent
497076d9d3
commit
72e45aa8b5
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user