fixed Win32 widget factory

This commit is contained in:
saari%netscape.com 1999-02-04 10:49:00 +00:00
parent 77143e947d
commit 3a41bf06b7

View File

@ -220,13 +220,13 @@ nsresult nsWidgetFactory::CreateInstance( nsISupports* aOuter,
inst = (nsISupports*)(nsWindow*)new nsLabel();
}
else if (mClassID.Equals(kCMenuBar)) {
inst = (nsISupports*)new nsMenuBar();
inst = (nsISupports*)(nsIMenuBar*)new nsMenuBar();
}
else if (mClassID.Equals(kCMenu)) {
inst = (nsISupports*)new nsMenu();
inst = (nsISupports*)(nsIMenu*)new nsMenu();
}
else if (mClassID.Equals(kCMenuItem)) {
inst = (nsISupports*)new nsMenuItem();
inst = (nsISupports*)(nsIMenuItem*)new nsMenuItem();
}
else if (mClassID.Equals(kCImageButton)) {
inst = (nsISupports*)(nsWindow*)new nsImageButton();