Draft: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:11:16 +01:00
parent 1b4c23eeea
commit 1b9f30fe76
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ private:
{
Base::Console().Warning("DraftUtils.readDXF is deprecated. Use Import.readDxf instead.\n");
char* Name;
const char* DocName=0;
const char* DocName=nullptr;
bool IgnoreErrors=true;
if (!PyArg_ParseTuple(args.ptr(), "et|sb","utf-8",&Name,&DocName,&IgnoreErrors))
throw Py::Exception();