Salome HOME
Migration to OCCT 7.0
[modules/geom.git] / src / GEOMImpl / GEOMImpl_DiskDriver.cxx
index a64b3192fc8c98fdbe64cdb31e6fcdf04d92f528..05fa46439c465e49d0d6715293fc9500a605b676 100644 (file)
@@ -69,7 +69,7 @@ GEOMImpl_DiskDriver::GEOMImpl_DiskDriver()
 //function : Execute
 //purpose  :
 //======================================================================= 
-Standard_Integer GEOMImpl_DiskDriver::Execute(TFunction_Logbook& log) const
+Standard_Integer GEOMImpl_DiskDriver::Execute(LOGBOOK& log) const
 {
   if (Label().IsNull()) return 0;    
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction(Label());
@@ -165,7 +165,11 @@ Standard_Integer GEOMImpl_DiskDriver::Execute(TFunction_Logbook& log) const
 
   aFunction->SetValue(aShape);
 
-  log.SetTouched(Label()); 
+#if OCC_VERSION_MAJOR < 7
+  log.SetTouched(Label());
+#else
+  log->SetTouched(Label());
+#endif
 
   return 1;    
 }
@@ -209,6 +213,5 @@ GetCreationInformation(std::string&             theOperationName,
   
   return true;
 }
-IMPLEMENT_STANDARD_HANDLE (GEOMImpl_DiskDriver,GEOM_BaseDriver);
 
-IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_DiskDriver,GEOM_BaseDriver);
+OCCT_IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_DiskDriver,GEOM_BaseDriver);