App: modernize C++11
* use nullptr
This commit is contained in:
@@ -354,7 +354,7 @@ void PropertyPythonObject::Restore(Base::XMLReader &reader)
|
||||
Py::Module mod(PyImport_ImportModule(nam.c_str()),true);
|
||||
if (mod.isNull())
|
||||
throw Py::Exception();
|
||||
this->object = PyObject_CallObject(mod.getAttr(cls).ptr(), NULL);
|
||||
this->object = PyObject_CallObject(mod.getAttr(cls).ptr(), nullptr);
|
||||
load_pickle = true;
|
||||
buffer = std::string(what[2].second, end);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user