]> SALOME platform Git repositories - plugins/canrecplugin.git/blobdiff - src/CANRECPLUGINEngine/CANRECPluginImpl_Driver.cxx
Salome HOME
Clean-up deprecated OCCT-related code
[plugins/canrecplugin.git] / src / CANRECPLUGINEngine / CANRECPluginImpl_Driver.cxx
index a0f400a0bf5884bf5b2e4661232153db5a75f391..167acfac39da13373feb11f3bed4d4f675fc9d78 100644 (file)
@@ -103,16 +103,16 @@ CANRECPluginImpl_Driver::~CANRECPluginImpl_Driver()
 {
 }
 
-Standard_Boolean CANRECPluginImpl_Driver::MustExecute( const LOGBOOK& ) const
+Standard_Boolean CANRECPluginImpl_Driver::MustExecute( const Handle(TFunction_Logbook)& ) const
 {
   return Standard_True;
 }
 
-void CANRECPluginImpl_Driver::Validate( LOGBOOK& ) const
+void CANRECPluginImpl_Driver::Validate( Handle(TFunction_Logbook)& ) const
 {
 } 
 
-Standard_Integer CANRECPluginImpl_Driver::Execute( LOGBOOK& log ) const
+Standard_Integer CANRECPluginImpl_Driver::Execute( Handle(TFunction_Logbook)& log ) const
 {
   if ( Label().IsNull() ) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -189,11 +189,7 @@ Standard_Integer CANRECPluginImpl_Driver::Execute( LOGBOOK& log ) const
 
   aFunction->SetValue( aResultingShape );
 
-#if OCC_VERSION_MAJOR < 7
-  log.SetTouched( Label() );
-#else
   log->SetTouched( Label() );
-#endif
   
   return 1;
 }
@@ -216,4 +212,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver,GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( CANRECPluginImpl_Driver,GEOM_BaseDriver );