1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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:
kgv
2019-03-16 18:55:36 +03:00
committed by apn
parent 18434846a3
commit ad67e36766
14 changed files with 54 additions and 52 deletions

View File

@@ -67,7 +67,7 @@ Standard_Boolean Expr_NamedExpression::IsIdentical
//AGV 22.03.12: Comparison should be based on names rather than Handles
const Expr_NamedExpression* pOther =
static_cast<const Expr_NamedExpression*>(theOther.operator->());
static_cast<const Expr_NamedExpression*>(theOther.get());
if (pOther == this || pOther->GetName().IsEqual(myName))
aResult = Standard_True;
}