Bug 174055, part 6: eliminate pointless nsresult return values.

This commit is contained in:
Zack Weinberg
2011-04-07 21:18:43 -07:00
parent 63aa6196ff
commit 12c96408b6
41 changed files with 271 additions and 399 deletions

View File

@@ -8809,12 +8809,10 @@ void ReflowCountMgr::PaintCount(const char* aName,
aRenderingContext->SetFont(fm);
char buf[16];
sprintf(buf, "%d", counter->mCount);
nscoord x = 0, y;
nscoord width, height;
nscoord x = 0, y = fm->MaxAscent();
nscoord width, height = fm->MaxHeight();
aRenderingContext->SetTextRunRTL(PR_FALSE);
aRenderingContext->GetWidth((char*)buf, width);
fm->GetMaxHeight(height);
fm->GetMaxAscent(y);
PRUint32 color;
PRUint32 color2;