App: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 17:29:23 +01:00
parent 4183c45a01
commit 1a20b7f119
67 changed files with 647 additions and 643 deletions

View File

@@ -218,7 +218,7 @@ std::string DocumentObjectT::getDocumentPython() const
DocumentObject* DocumentObjectT::getObject() const
{
DocumentObject* obj = 0;
DocumentObject* obj = nullptr;
Document* doc = getDocument();
if (doc) {
obj = doc->getObject(object.c_str());
@@ -260,7 +260,7 @@ Property *DocumentObjectT::getProperty() const {
auto obj = getObject();
if(obj)
return obj->getPropertyByName(property.c_str());
return 0;
return nullptr;
}
// -----------------------------------------------------------------------------
@@ -379,7 +379,7 @@ App::DocumentObject *SubObjectT::getSubObject() const {
auto obj = getObject();
if(obj)
return obj->getSubObject(subname.c_str());
return 0;
return nullptr;
}
std::string SubObjectT::getSubObjectPython(bool force) const {