OCCT 7.0 compatibility

This commit is contained in:
mnt 2016-03-21 13:22:37 +03:00
parent 122b5e9042
commit c978009003
2 changed files with 2 additions and 2 deletions

View File

@ -1534,7 +1534,7 @@ void EntityGUI_3DSketcherDlg::displayAngle (double theAngle,
P0, P0,
P1, P1,
P2); P2);
if (anAngleIO == NULL) if (anAngleIO.IsNull())
return; return;
if (store) if (store)

View File

@ -56,7 +56,7 @@ bool GEOM_Solver::UpdateObject(Handle(GEOM_Object) theObject, TDF_LabelSequence&
//============================================================================= //=============================================================================
bool GEOM_Solver::ComputeFunction(Handle(GEOM_Function) theFunction) bool GEOM_Solver::ComputeFunction(Handle(GEOM_Function) theFunction)
{ {
if(theFunction == NULL) return false; if(theFunction.IsNull()) return false;
Standard_GUID aGUID = theFunction->GetDriverGUID(); Standard_GUID aGUID = theFunction->GetDriverGUID();
Handle(TFunction_Driver) aDriver; Handle(TFunction_Driver) aDriver;