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

@@ -116,14 +116,14 @@ protected:
PyObject *_exceptionType;
};
inline Py::Object pyCall(PyObject *callable, PyObject *args=0) {
inline Py::Object pyCall(PyObject *callable, PyObject *args=nullptr) {
PyObject *result = PyObject_CallObject(callable, args);
if(!result)
throw Py::Exception();
return Py::asObject(result);
}
inline Py::Object pyCallWithKeywords(PyObject *callable, PyObject *args, PyObject *kwds=0) {
inline Py::Object pyCallWithKeywords(PyObject *callable, PyObject *args, PyObject *kwds=nullptr) {
PyObject *result = PyObject_Call(callable, args, kwds);
if(!result)
throw Py::Exception();