Base: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-23 12:10:14 +02:00
committed by wwmayer
parent a60c9c2cf1
commit 4fb07bcfd6
18 changed files with 112 additions and 102 deletions

View File

@@ -55,10 +55,8 @@ typedef struct {
} PyBaseProxy;
// Constructor
PyObjectBase::PyObjectBase(void* p,PyTypeObject *T)
: _pcTwinPointer(p)
, baseProxy(nullptr)
, attrDict(nullptr)
PyObjectBase::PyObjectBase(void* voidp, PyTypeObject *T)
: _pcTwinPointer(voidp)
{
#if PY_VERSION_HEX < 0x030b0000
Py_TYPE(this) = T;