Part: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:06:48 +01:00
parent a057e5486d
commit 6d2d45ceb7
155 changed files with 1504 additions and 1504 deletions

View File

@@ -66,7 +66,7 @@ int CylinderPy::PyInit(PyObject* args, PyObject* kwds)
// cylinder and distance for offset
PyObject *pCyl;
double dist;
static char* keywords_cd[] = {"Cylinder","Distance",NULL};
static char* keywords_cd[] = {"Cylinder","Distance",nullptr};
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!d", keywords_cd, &(CylinderPy::Type), &pCyl, &dist)) {
CylinderPy* pcCylinder = static_cast<CylinderPy*>(pCyl);
Handle(Geom_CylindricalSurface) cylinder = Handle(Geom_CylindricalSurface)::DownCast
@@ -83,7 +83,7 @@ int CylinderPy::PyInit(PyObject* args, PyObject* kwds)
return 0;
}
static char* keywords_c[] = {"Cylinder",NULL};
static char* keywords_c[] = {"Cylinder",nullptr};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!", keywords_c, &(CylinderPy::Type), &pCyl)) {
CylinderPy* pcCylinder = static_cast<CylinderPy*>(pCyl);
@@ -96,7 +96,7 @@ int CylinderPy::PyInit(PyObject* args, PyObject* kwds)
}
PyObject *pV1, *pV2, *pV3;
static char* keywords_ppp[] = {"Point1","Point2","Point3",NULL};
static char* keywords_ppp[] = {"Point1","Point2","Point3",nullptr};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!O!O!", keywords_ppp,
&(Base::VectorPy::Type), &pV1,
@@ -119,7 +119,7 @@ int CylinderPy::PyInit(PyObject* args, PyObject* kwds)
return 0;
}
static char* keywords_cc[] = {"Circle",NULL};
static char* keywords_cc[] = {"Circle",nullptr};
PyErr_Clear();
PyObject *pCirc;
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!", keywords_cc, &(CirclePy::Type), &pCirc)) {
@@ -138,7 +138,7 @@ int CylinderPy::PyInit(PyObject* args, PyObject* kwds)
return 0;
}
static char* keywords_n[] = {NULL};
static char* keywords_n[] = {nullptr};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "", keywords_n)) {
Handle(Geom_CylindricalSurface) cyl = Handle(Geom_CylindricalSurface)::DownCast
@@ -246,7 +246,7 @@ void CylinderPy::setAxis(Py::Object arg)
PyObject *CylinderPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;
return nullptr;
}
int CylinderPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)