Test: modernize C++11

* remove redundant void-arg
* use nullptr
This commit is contained in:
wmayer
2022-01-26 17:46:02 +01:00
parent ccb63a8dbe
commit 60d32ee475
5 changed files with 15 additions and 15 deletions

View File

@@ -57,7 +57,7 @@ private:
}
Py::Object setTest(const Py::Tuple& args)
{
char *pstr=0;
char *pstr=nullptr;
if (!PyArg_ParseTuple(args.ptr(), "|s", &pstr))
throw Py::Exception();
@@ -70,7 +70,7 @@ private:
}
Py::Object addTest(const Py::Tuple& args)
{
char *pstr=0;
char *pstr=nullptr;
if (!PyArg_ParseTuple(args.ptr(), "|s", &pstr))
throw Py::Exception();