Gui: modernize C++11
* use nullptr
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user