Mesh: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:08:10 +01:00
parent e8f9c8a1d3
commit ec4d8a7500
4 changed files with 7 additions and 7 deletions

View File

@@ -185,14 +185,14 @@ private:
Py::Object importer(const Py::Tuple& args)
{
char* Name;
char* DocName=0;
char* DocName=nullptr;
if (!PyArg_ParseTuple(args.ptr(), "et|s","utf-8",&Name,&DocName))
throw Py::Exception();
std::string EncodedName = std::string(Name);
PyMem_Free(Name);
App::Document *pcDoc = 0;
App::Document *pcDoc = nullptr;
if (DocName) {
pcDoc = App::GetApplication().getDocument(DocName);
}
@@ -223,7 +223,7 @@ private:
int exportAmfCompressed( hGrp->GetBool("ExportAmfCompressed", true) );
static char *kwList[] = {"objectList", "filename", "tolerance",
"exportAmfCompressed", NULL};
"exportAmfCompressed", nullptr};
if (!PyArg_ParseTupleAndKeywords( args.ptr(), keywds.ptr(),
"Oet|dp",