Import: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 19:11:33 +01:00
parent 1b9f30fe76
commit 84f5b40789
9 changed files with 45 additions and 45 deletions

View File

@@ -270,7 +270,7 @@ void ImportOCAF::loadShapes(const TDF_Label& label, const TopLoc_Location& loc,
if (!localValue.empty()) {
if (aShapeTool->IsAssembly(label)) {
App::Part *pcPart = NULL;
App::Part *pcPart = nullptr;
pcPart = static_cast<App::Part*>(doc->addObject("App::Part",asm_name.c_str()));
pcPart->Label.setValue(asm_name);
pcPart->addObjects(localValue);
@@ -310,7 +310,7 @@ void ImportOCAF::createShape(const TDF_Label& label, const TopLoc_Location& loc,
TopExp_Explorer xp;
int ctSolids = 0, ctShells = 0, ctVertices = 0, ctEdges = 0;
std::vector<App::DocumentObject *> localValue;
App::Part *pcPart = NULL;
App::Part *pcPart = nullptr;
if (mergeShape) {