Get rid of o_isClass
Esse commit está contido em:
@@ -122,10 +122,6 @@ bool ObjectData::o_instanceof(CStrRef s) const {
|
||||
return m_cls->classof(cls);
|
||||
}
|
||||
|
||||
bool ObjectData::o_isClass(const char *s) const {
|
||||
return strcasecmp(s, o_getClassName().c_str()) == 0;
|
||||
}
|
||||
|
||||
int64_t ObjectData::o_toInt64() const {
|
||||
raise_notice("Object of class %s could not be converted to int",
|
||||
o_getClassName().data());
|
||||
|
||||
@@ -142,7 +142,6 @@ class ObjectData : public CountableNF {
|
||||
CStrRef o_getParentName() const;
|
||||
virtual CStrRef o_getClassNameHook() const;
|
||||
virtual bool isResource() const { return false;}
|
||||
bool o_isClass(const char *s) const;
|
||||
int o_getId() const { return o_id;}
|
||||
|
||||
// overridable casting
|
||||
|
||||
@@ -82,7 +82,7 @@ bool Object::equal(CObjRef v2) const {
|
||||
if (isResource() || v2.isResource()) {
|
||||
return false;
|
||||
}
|
||||
if (!v2.get()->o_isClass(m_px->o_getClassName().c_str())) {
|
||||
if (v2.get()->getVMClass() != m_px->getVMClass()) {
|
||||
return false;
|
||||
}
|
||||
if (m_px->isCollection()) {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário