Initialize mFont to nsnull in constructor.

This commit is contained in:
kmcclusk%netscape.com 1998-09-29 22:01:50 +00:00
Родитель e87c3dad72
Коммит f966189c3a
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -98,6 +98,7 @@ nsWindow::nsWindow():
mClientData = nsnull;
mPreferredWidth = 0;
mPreferredHeight = 0;
mFont = nsnull;
}
//-------------------------------------------------------------------------
@ -341,7 +342,6 @@ void nsWindow::CreateChildWindow(nsNativeWidget aNativeParent,
nsIToolkit *aToolkit,
nsWidgetInitData *aInitData)
{
printf("ENTER Create a child window\n");
mBounds = aRect;
mAppShell = aAppShell;
@ -370,7 +370,6 @@ printf("ENTER Create a child window\n");
XmNuserData, this,
nsnull);
printf("Created a child window %d %d\n", aRect.width, aRect.height);
if (aWidgetParent) {
aWidgetParent->AddChild(this);
}
@ -381,7 +380,6 @@ printf("Created a child window %d %d\n", aRect.width, aRect.height);
InitCallbacks();
CreateGC();
printf("EXIT Creating a child window\n");
}
//-------------------------------------------------------------------------