Closed Bug 278960 Opened 20 years ago Closed 16 years ago

mFont variable in nsWindow write-only

Categories

(Core :: Widget: Win32, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Biesinger, Unassigned)

Details

mFont is only ever written to, in SetFont:
NS_METHOD nsWindow::SetFont(const nsFont &aFont)
{
  // Cache Font for owner draw
  if (mFont == nsnull) {
    mFont = new nsFont(aFont);
  } else {
    *mFont  = aFont;
  }

Other than this, it's not used. so it looks like it can be eliminated.
mFont no longer seems to exist in nsWindow
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.