warning fix for Linux, shadowed local variable
r: kin git-svn-id: svn://10.0.0.236/trunk@71762 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5776f5a3b4
commit
33e5b973b9
@ -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…
x
Reference in New Issue
Block a user