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

@@ -95,7 +95,7 @@ PyObject* TopoShapeCompSolidPy::add(PyObject *args)
{
PyObject *obj;
if (!PyArg_ParseTuple(args, "O!", &(Part::TopoShapeSolidPy::Type), &obj))
return NULL;
return nullptr;
BRep_Builder builder;
TopoDS_Shape comp = getTopoShapePtr()->getShape();
@@ -111,7 +111,7 @@ PyObject* TopoShapeCompSolidPy::add(PyObject *args)
catch (Standard_Failure& e) {
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
return 0;
return nullptr;
}
getTopoShapePtr()->setShape(comp);
@@ -121,7 +121,7 @@ PyObject* TopoShapeCompSolidPy::add(PyObject *args)
PyObject *TopoShapeCompSolidPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;
return nullptr;
}
int TopoShapeCompSolidPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)