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

@@ -41,7 +41,7 @@ std::string DrawParametricTemplatePy::representation(void) const
PyObject *DrawParametricTemplatePy::getCustomAttributes(const char* /*attr*/) const
{
return 0;
return nullptr;
}
int DrawParametricTemplatePy::setCustomAttributes(const char* attr, PyObject* obj)
@@ -72,7 +72,7 @@ PyObject* DrawParametricTemplatePy::drawLine(PyObject *args)
double x2, y2;
if (!PyArg_ParseTuple(args, "dddd", &x1, &y1, &x2, &y2))
return 0;
return nullptr;
getDrawParametricTemplatePtr()->drawLine(x1,y1,x2,y2);