Base: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 16:57:25 +01:00
parent 6cf4b71b0f
commit 882e34f2ce
9 changed files with 17 additions and 17 deletions

View File

@@ -167,7 +167,7 @@ PyObject* PlacementPy::rotate(PyObject *args) {
PyObject *obj1, *obj2;
double angle;
if (!PyArg_ParseTuple(args, "OOd", &obj1, &obj2, &angle))
return NULL;
return nullptr;
try {
Py::Sequence p1(obj1), p2(obj2);
@@ -182,7 +182,7 @@ PyObject* PlacementPy::rotate(PyObject *args) {
Py_Return;
}
catch (const Py::Exception&) {
return NULL;
return nullptr;
}
}