зеркало из https://github.com/mozilla/gecko-dev.git
nsAppShell isn't an nsWidget, so don't cast it as so. This fixes the
nsRepository::CreateInstance for nsAppShell from viewer so it doesn't return with an error for me.
This commit is contained in:
Родитель
ff3388ba99
Коммит
faef147169
|
@ -197,7 +197,7 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
|
|||
// inst = (nsISupports*)(nsWidget *)new nsTooltipWidget();
|
||||
}
|
||||
else if (mClassID.Equals(kCAppShell)) {
|
||||
inst = (nsISupports*)(nsWidget *)new nsAppShell();
|
||||
inst = (nsISupports*)new nsAppShell();
|
||||
}
|
||||
else if (mClassID.Equals(kCToolkit)) {
|
||||
inst = (nsISupports*)(nsWidget *)new nsToolkit();
|
||||
|
|
Загрузка…
Ссылка в новой задаче