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:
pavlov%pavlov.net 1999-02-20 19:56:01 +00:00
Родитель ff3388ba99
Коммит faef147169
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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();