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

@@ -63,7 +63,7 @@ PyObject *ConePy::PyMake(struct _typeobject *, PyObject *, PyObject *) // Pytho
// constructor method
int ConePy::PyInit(PyObject* args, PyObject* kwds)
{
char* keywords_n[] = {NULL};
char* keywords_n[] = {nullptr};
if (PyArg_ParseTupleAndKeywords(args, kwds, "", keywords_n)) {
Handle(Geom_ConicalSurface) s = Handle(Geom_ConicalSurface)::DownCast
(getGeometryPtr()->handle());
@@ -73,7 +73,7 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds)
PyObject *pV1, *pV2;
double radius1, radius2;
static char* keywords_pprr[] = {"Point1","Point2","Radius1","Radius2",NULL};
static char* keywords_pprr[] = {"Point1","Point2","Radius1","Radius2",nullptr};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!O!dd", keywords_pprr,
&(Base::VectorPy::Type), &pV1,
@@ -96,7 +96,7 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds)
}
PyObject *pV3, *pV4;
static char* keywords_pppp[] = {"Point1","Point2","Point3","Point4",NULL};
static char* keywords_pppp[] = {"Point1","Point2","Point3","Point4",nullptr};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!O!O!O!", keywords_pppp,
&(Base::VectorPy::Type), &pV1,
@@ -123,7 +123,7 @@ int ConePy::PyInit(PyObject* args, PyObject* kwds)
}
PyObject *pCone;
static char* keywords_c[] = {"Cone",NULL};
static char* keywords_c[] = {"Cone",nullptr};
PyErr_Clear();
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!d", keywords_c,
&(ConePy::Type), &pCone)) {
@@ -262,7 +262,7 @@ void ConePy::setAxis(Py::Object arg)
PyObject *ConePy::getCustomAttributes(const char* /*attr*/) const
{
return 0;
return nullptr;
}
int ConePy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)