Gui: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:41:21 +01:00
parent be7e18757c
commit 1178df06b4
239 changed files with 1197 additions and 1197 deletions

View File

@@ -115,7 +115,7 @@ PyMOD_INIT_FUNC(FreeCAD)
if ((ret == 0) || (!info.dli_fname)) {
free(argv);
PyErr_SetString(PyExc_ImportError, "Cannot get path of the FreeCAD module!");
return 0;
return nullptr;
}
argv[0] = (char*)malloc(PATH_MAX);
@@ -185,7 +185,7 @@ PyMOD_INIT_FUNC(FreeCAD)
#else
# error "Implement: Retrieve the path of the module for your platform."
#endif
argv[argc] = 0;
argv[argc] = nullptr;
try {
// Inits the Application