TD: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:07:44 +01:00
parent d1d4b996e7
commit e8f9c8a1d3
146 changed files with 320 additions and 320 deletions

View File

@@ -49,7 +49,7 @@ PyObject* DrawViewClipPy::addView(PyObject* args)
if (!PyArg_ParseTuple(args, "O!", &(App::DocumentObjectPy::Type), &pcDocObj)) {
Base::Console().Error("Error: DrawViewClipPy::addView - Bad Arg - not DocumentObject\n");
return NULL;
return nullptr;
//TODO: sb PyErr??
//PyErr_SetString(PyExc_TypeError,"addView expects a DrawView");
//return -1;
@@ -73,7 +73,7 @@ PyObject* DrawViewClipPy::removeView(PyObject* args)
if (!PyArg_ParseTuple(args, "O!", &(App::DocumentObjectPy::Type), &pcDocObj)) {
Base::Console().Error("Error: DrawViewClipPy::removeView - Bad Arg - not DocumentObject\n");
return NULL;
return nullptr;
//TODO: sb PyErr??
//PyErr_SetString(PyExc_TypeError,"removeView expects a DrawView");
//return -1;
@@ -111,7 +111,7 @@ PyObject* DrawViewClipPy::getChildViewNames(PyObject* args)
PyObject *DrawViewClipPy::getCustomAttributes(const char* ) const
{
return 0;
return nullptr;
}
int DrawViewClipPy::setCustomAttributes(const char* , PyObject *)