mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
fixed Win32 widget factory
This commit is contained in:
parent
77143e947d
commit
3a41bf06b7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user