mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030588: Coding - avoid calling operator->() on NULL Handle
Use .get() method instead of operator->() where result can be NULL. STEPCAFControl_Reader::ReadLayers(), XCAFDoc_ColorTool, XCAFDoc_LayerTool::SetVisibility() - fixed static functions syntax.
This commit is contained in:
@@ -1406,8 +1406,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadLayers(const Handle(XSControl_WorkSe
|
||||
#endif
|
||||
//TDF_Label InvLayerLab = LTool->FindLayer(aLayerName);
|
||||
TDF_Label InvLayerLab = LTool->AddLayer(aLayerName); //skl for OCC3926
|
||||
Handle(TDataStd_UAttribute) aUAttr;
|
||||
aUAttr->Set(InvLayerLab, XCAFDoc::InvisibleGUID());
|
||||
TDataStd_UAttribute::Set (InvLayerLab, XCAFDoc::InvisibleGUID());
|
||||
}
|
||||
}
|
||||
return Standard_True;
|
||||
|
Reference in New Issue
Block a user