App: modernize C++11
* use nullptr
This commit is contained in:
@@ -38,13 +38,13 @@ PyObject *MaterialPy::PyMake(struct _typeobject *, PyObject *, PyObject *) // P
|
||||
// constructor method
|
||||
int MaterialPy::PyInit(PyObject* args, PyObject* kwds)
|
||||
{
|
||||
PyObject* diffuse = 0;
|
||||
PyObject* ambient = 0;
|
||||
PyObject* specular = 0;
|
||||
PyObject* emissive = 0;
|
||||
PyObject* shininess = 0;
|
||||
PyObject* transparency = 0;
|
||||
static char* kwds_colors[] = { "DiffuseColor", "AmbientColor", "SpecularColor", "EmissiveColor", "Shininess", "Transparency", NULL };
|
||||
PyObject* diffuse = nullptr;
|
||||
PyObject* ambient = nullptr;
|
||||
PyObject* specular = nullptr;
|
||||
PyObject* emissive = nullptr;
|
||||
PyObject* shininess = nullptr;
|
||||
PyObject* transparency = nullptr;
|
||||
static char* kwds_colors[] = { "DiffuseColor", "AmbientColor", "SpecularColor", "EmissiveColor", "Shininess", "Transparency", nullptr };
|
||||
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "|OOOOOO", kwds_colors,
|
||||
&diffuse, &ambient, &specular, &emissive, &shininess, &transparency))
|
||||
@@ -200,7 +200,7 @@ void MaterialPy::setTransparency(Py::Float arg)
|
||||
|
||||
PyObject *MaterialPy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int MaterialPy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)
|
||||
|
||||
Reference in New Issue
Block a user