зеркало из https://github.com/mozilla/pjs.git
Type of a JSType* is Type_Type (wow, recursive). Changed mBaseType to be JSType* instead of const JSType*.
This commit is contained in:
Родитель
5bb1c008fb
Коммит
d2acc1ba67
|
@ -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 };
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче