Don't create special objects for NULL, just use NULL directly.

Also move null check into PycRef for nullable references.
This commit is contained in:
Michael Hansen 2017-07-05 16:36:04 -07:00
commit b9dd99d518
12 changed files with 160 additions and 155 deletions

View file

@ -84,7 +84,7 @@ void PycString::load(PycData* stream, PycModule* mod)
bool PycString::isEqual(PycRef<PycObject> obj) const
{
if (type() != obj->type())
if (type() != obj.type())
return false;
PycRef<PycString> strObj = obj.cast<PycString>();