Type of a JSType* is Type_Type (wow, recursive). Changed mBaseType to be JSType* instead of const JSType*.

This commit is contained in:
beard%netscape.com 2000-06-28 19:45:09 +00:00
Родитель 5bb1c008fb
Коммит d2acc1ba67
2 изменённых файлов: 10 добавлений и 4 удалений

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

@ -503,9 +503,12 @@ namespace JSTypes {
class JSType : public JSObject {
protected:
String mName;
const JSType *mBaseType;
JSType *mBaseType;
public:
JSType(const String &name, const JSType *baseType) : mName(name), mBaseType(baseType) { }
JSType(const String &name, JSType *baseType) : mName(name), mBaseType(baseType)
{
mType = &Type_Type;
}
enum { NoRelation = 0x7FFFFFFF };

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

@ -503,9 +503,12 @@ namespace JSTypes {
class JSType : public JSObject {
protected:
String mName;
const JSType *mBaseType;
JSType *mBaseType;
public:
JSType(const String &name, const JSType *baseType) : mName(name), mBaseType(baseType) { }
JSType(const String &name, JSType *baseType) : mName(name), mBaseType(baseType)
{
mType = &Type_Type;
}
enum { NoRelation = 0x7FFFFFFF };