Part: modernize C++11
* use nullptr
This commit is contained in:
@@ -66,7 +66,7 @@ int PlanePy::PyInit(PyObject* args, PyObject* kwds)
|
||||
// plane and distance for offset
|
||||
PyObject *pPlane;
|
||||
double dist;
|
||||
static char* keywords_pd[] = {"Plane","Distance",NULL};
|
||||
static char* keywords_pd[] = {"Plane","Distance",nullptr};
|
||||
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!d", keywords_pd, &(PlanePy::Type), &pPlane, &dist)) {
|
||||
PlanePy* pcPlane = static_cast<PlanePy*>(pPlane);
|
||||
Handle(Geom_Plane) plane = Handle(Geom_Plane)::DownCast
|
||||
@@ -84,7 +84,7 @@ int PlanePy::PyInit(PyObject* args, PyObject* kwds)
|
||||
|
||||
// plane from equation
|
||||
double a,b,c,d;
|
||||
static char* keywords_abcd[] = {"A","B","C","D",NULL};
|
||||
static char* keywords_abcd[] = {"A","B","C","D",nullptr};
|
||||
PyErr_Clear();
|
||||
if (PyArg_ParseTupleAndKeywords(args, kwds, "dddd", keywords_abcd,
|
||||
&a,&b,&c,&d)) {
|
||||
@@ -100,7 +100,7 @@ int PlanePy::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,
|
||||
@@ -123,7 +123,7 @@ int PlanePy::PyInit(PyObject* args, PyObject* kwds)
|
||||
}
|
||||
|
||||
// location and normal
|
||||
static char* keywords_cnr[] = {"Location","Normal",NULL};
|
||||
static char* keywords_cnr[] = {"Location","Normal",nullptr};
|
||||
PyErr_Clear();
|
||||
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!O!", keywords_cnr,
|
||||
&(Base::VectorPy::Type), &pV1,
|
||||
@@ -142,7 +142,7 @@ int PlanePy::PyInit(PyObject* args, PyObject* kwds)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static char* keywords_p[] = {"Plane",NULL};
|
||||
static char* keywords_p[] = {"Plane",nullptr};
|
||||
PyErr_Clear();
|
||||
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!", keywords_p, &(PlanePy::Type), &pPlane)) {
|
||||
PlanePy* pcPlane = static_cast<PlanePy*>(pPlane);
|
||||
@@ -154,7 +154,7 @@ int PlanePy::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)) {
|
||||
// do nothing
|
||||
@@ -257,7 +257,7 @@ void PlanePy::setAxis(Py::Object arg)
|
||||
|
||||
PyObject *PlanePy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int PlanePy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
|
||||
|
||||
Reference in New Issue
Block a user