This commit is contained in:
pinkerton%netscape.com 1999-02-05 19:38:09 +00:00
Родитель 9d55a9a24d
Коммит a5e5905f95
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -51,7 +51,7 @@
#include "nsToolbarItemHolder.h"
#include "nsAppShell.h"
#include "nsIServiceManager.h"
#include "nsXULCommand.h"
//#include "nsXULCommand.h"
static NS_DEFINE_IID(kCWindow, NS_WINDOW_CID);
static NS_DEFINE_IID(kCChild, NS_CHILD_CID);
@ -83,7 +83,7 @@ static NS_DEFINE_IID(kCToolBarItemHolder, NS_TOOLBARITEMHOLDER_CID);
static NS_DEFINE_IID(kCPopUpMenu, NS_POPUPMENU_CID);
static NS_DEFINE_IID(kCMenuButton, NS_MENUBUTTON_CID);
static NS_DEFINE_IID(kCTreeView, NS_TREEVIEW_CID);
static NS_DEFINE_IID(kCXULCommand, NS_XULCOMMAND_CID);
//static NS_DEFINE_IID(kCXULCommand, NS_XULCOMMAND_CID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kIFactoryIID, NS_IFACTORY_IID);
@ -230,9 +230,9 @@ nsresult nsWidgetFactory::CreateInstance( nsISupports* aOuter,
else if (mClassID.Equals(kCMenuItem)) {
inst = (nsISupports*)(nsIMenuItem*)new nsMenuItem();
}
else if (mClassID.Equals(kCXULCommand)) {
inst = (nsISupports*)(nsIXULCommand*) new nsXULCommand();
}
// else if (mClassID.Equals(kCXULCommand)) {
// inst = (nsISupports*)(nsIXULCommand*) new nsXULCommand();
// }
else if (mClassID.Equals(kCImageButton)) {
inst = (nsISupports*)(nsWindow*)new nsImageButton();
}