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

@@ -280,7 +280,7 @@ PyObject* RotationPy::slerp(PyObject * args)
PyObject *rot;
double t;
if (!PyArg_ParseTuple(args, "O!d", &(RotationPy::Type), &rot, &t))
return 0;
return nullptr;
Rotation *rot0 = this->getRotationPtr();
Rotation *rot1 = static_cast<RotationPy*>(rot)->getRotationPtr();
Rotation sl = Rotation::slerp(*rot0, *rot1, t);
@@ -357,7 +357,7 @@ PyObject* RotationPy::toEulerAngles(PyObject * args)
PyObject* RotationPy::toMatrix(PyObject * args)
{
if (!PyArg_ParseTuple(args, ""))
return NULL;
return nullptr;
Base::Matrix4D mat;
getRotationPtr()->getValue(mat);
return new MatrixPy(new Matrix4D(mat));