Core: Enable compiling with MSVC /permissive- (#11014)
* Base: Fixes for MSVC permissive- * App: Fixes for MSVC permissive- * Gui: Fixes for MSVC permissive- * Main: Fixes for MSVC permissive- * Fem: Fixes for MSVC permissive- * Material: Fixes for MSVC permissive- * Part: Fixes for MSVC permissive- * Mesh: Fixes for MSVC permissive- * Points: Fixes for MSVC permissive- * Robot: Fixes for MSVC permissive- * TechDraw: Fixes for MSVC permissive- * Path: Fixes for MSVC permissive- * Core; Changes per review comments * TD: Revision from wandererfan * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -54,7 +54,7 @@ int MaterialManagerPy::PyInit(PyObject* /*args*/, PyObject* /*kwd*/)
|
||||
|
||||
PyObject* MaterialManagerPy::getMaterial(PyObject* args)
|
||||
{
|
||||
char* uuid;
|
||||
char* uuid {};
|
||||
if (!PyArg_ParseTuple(args, "s", &uuid)) {
|
||||
return nullptr;
|
||||
}
|
||||
@@ -71,8 +71,8 @@ PyObject* MaterialManagerPy::getMaterial(PyObject* args)
|
||||
|
||||
PyObject* MaterialManagerPy::getMaterialByPath(PyObject* args)
|
||||
{
|
||||
char* path;
|
||||
char* lib = "";
|
||||
char* path {};
|
||||
const char* lib = "";
|
||||
if (!PyArg_ParseTuple(args, "s|s", &path, &lib)) {
|
||||
return nullptr;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ int MaterialManagerPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj
|
||||
|
||||
PyObject* MaterialManagerPy::materialsWithModel(PyObject* args)
|
||||
{
|
||||
char* uuid;
|
||||
char* uuid {};
|
||||
if (!PyArg_ParseTuple(args, "s", &uuid)) {
|
||||
return nullptr;
|
||||
}
|
||||
@@ -173,7 +173,7 @@ PyObject* MaterialManagerPy::materialsWithModel(PyObject* args)
|
||||
|
||||
PyObject* MaterialManagerPy::materialsWithModelComplete(PyObject* args)
|
||||
{
|
||||
char* uuid;
|
||||
char* uuid {};
|
||||
if (!PyArg_ParseTuple(args, "s", &uuid)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user