From c978009003909f8af73467666cf91ac1816cd0db Mon Sep 17 00:00:00 2001 From: mnt Date: Mon, 21 Mar 2016 13:22:37 +0300 Subject: [PATCH] OCCT 7.0 compatibility --- src/EntityGUI/EntityGUI_3DSketcherDlg.cxx | 2 +- src/GEOM/GEOM_Solver.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx b/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx index 1cb9e9223..24a2c3fb1 100755 --- a/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_3DSketcherDlg.cxx @@ -1534,7 +1534,7 @@ void EntityGUI_3DSketcherDlg::displayAngle (double theAngle, P0, P1, P2); - if (anAngleIO == NULL) + if (anAngleIO.IsNull()) return; if (store) diff --git a/src/GEOM/GEOM_Solver.cxx b/src/GEOM/GEOM_Solver.cxx index e2c8aac8f..70906c4da 100644 --- a/src/GEOM/GEOM_Solver.cxx +++ b/src/GEOM/GEOM_Solver.cxx @@ -56,7 +56,7 @@ bool GEOM_Solver::UpdateObject(Handle(GEOM_Object) theObject, TDF_LabelSequence& //============================================================================= bool GEOM_Solver::ComputeFunction(Handle(GEOM_Function) theFunction) { - if(theFunction == NULL) return false; + if(theFunction.IsNull()) return false; Standard_GUID aGUID = theFunction->GetDriverGUID(); Handle(TFunction_Driver) aDriver; -- 2.39.2