just cleaning up a warning, found during fix for bug 52307

git-svn-id: svn://10.0.0.236/trunk@79082 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
2000-09-14 05:50:56 +00:00
parent f3bac4c3b6
commit cba0baa8a4
2 changed files with 6 additions and 4 deletions

View File

@@ -952,8 +952,9 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
if (inTextControl)
{
nsLineBox *currentLine=nsnull;
nsresult rv = nsBlockFrame::GetCurrentLine(mBlockRS, &currentLine);
if (NS_SUCCEEDED(rv) && currentLine) {
// use localResult because a failure here should not be propagated to my caller
nsresult localResult = nsBlockFrame::GetCurrentLine(mBlockRS, &currentLine);
if (NS_SUCCEEDED(localResult) && currentLine) {
currentLine->SetForceInvalidate(PR_TRUE);
}
}

View File

@@ -952,8 +952,9 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
if (inTextControl)
{
nsLineBox *currentLine=nsnull;
nsresult rv = nsBlockFrame::GetCurrentLine(mBlockRS, &currentLine);
if (NS_SUCCEEDED(rv) && currentLine) {
// use localResult because a failure here should not be propagated to my caller
nsresult localResult = nsBlockFrame::GetCurrentLine(mBlockRS, &currentLine);
if (NS_SUCCEEDED(localResult) && currentLine) {
currentLine->SetForceInvalidate(PR_TRUE);
}
}