This commit is contained in:
kostello%netscape.com 1998-09-15 21:55:50 +00:00
Родитель 6ad9c93c61
Коммит 050d5a81b9
1 изменённых файлов: 4 добавлений и 8 удалений

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

@ -29,10 +29,10 @@
#include "nsRadioButton.h"
#include "nsCheckButton.h"
#include "nsTextWidget.h"
#include "nsFileWidget.h"
//#include "nsScrollbar.h"
//#include "nsTextAreaWidget.h"
//#include "nsFileWidget.h"
//#include "nsListBox.h"
//#include "nsComboBox.h"
//#include "nsLookAndFeel.h"
@ -179,6 +179,9 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
else if (mClassID.Equals(kCTextWidgetCID)) {
inst = new nsTextWidget();
}
else if (mClassID.Equals(kCFileWidgetCID)) {
inst = new nsFileWidget();
}
@ -202,9 +205,6 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
else if (mClassID.Equals(kCComboBoxCID)) {
inst = new nsComboBox();
}
else if (mClassID.Equals(kCFileWidgetCID)) {
inst = new nsFileWidget();
}
else if (mClassID.Equals(kCLookAndFeelCID)) {
nsLookAndFeel *laf = new nsLookAndFeel();
if (laf == NULL) {
@ -238,10 +238,6 @@ nsresult nsWidgetFactory::CreateInstance(nsISupports *aOuter,
if (res != NS_OK) {
delete inst;
}
else {
NS_RELEASE(inst);
}
return res;
}