Part: [skip ci] include OCC hesder to PCHs, fix compiler warning when trying to delete void pointer

This commit is contained in:
wmayer
2020-09-28 20:23:33 +02:00
parent 904574d368
commit 1a15d566d5
6 changed files with 9 additions and 16 deletions

View File

@@ -62,16 +62,6 @@ PyObjectBase::~PyObjectBase()
Py_XDECREF(attrDict);
}
void PyObjectBase::setPointer(void* ptr, bool del)
{
if (_pcTwinPointer == ptr)
return;
if (del)
delete _pcTwinPointer;
_pcTwinPointer = ptr;
}
/*------------------------------
* PyObjectBase Type -- Every class, even the abstract one should have a Type
------------------------------*/