App: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 17:29:23 +01:00
parent 882e34f2ce
commit 749361d2f3
67 changed files with 647 additions and 643 deletions

View File

@@ -40,13 +40,13 @@ std::string GeoFeaturePy::representation(void) const
PyObject* GeoFeaturePy::getPaths(PyObject * /*args*/)
{
PyErr_SetString(PyExc_NotImplementedError, "Not yet implemented");
return 0;
return nullptr;
}
PyObject* GeoFeaturePy::getGlobalPlacement(PyObject * args) {
if (!PyArg_ParseTuple(args, ""))
return 0;
return nullptr;
try {
Base::Placement p = static_cast<GeoFeature*>(getDocumentObjectPtr())->globalPlacement();
@@ -86,7 +86,7 @@ PyObject* GeoFeaturePy::getPropertyOfGeometry(PyObject * args)
PyObject *GeoFeaturePy::getCustomAttributes(const char* /*attr*/) const
{
return 0;
return nullptr;
}
int GeoFeaturePy::setCustomAttributes(const char* /*attr*/, PyObject* /*obj*/)