Salome HOME
Clean-up deprecated OCCT-related code
[plugins/acisplugin.git] / src / ACISPlugin_ImportDriver.cxx
index 21262fca08fadd856b5f3c0b43cedb6d2a19cc24..c45431ce6eee72d5eeed8c934644e3eaea2ac8e5 100644 (file)
@@ -29,7 +29,7 @@
 #include <GEOM_Function.hxx>
 #include <GEOMImpl_Types.hxx>
 
-// OOCT includes
+// OCCT includes
 #include <AcisAttr_AttribGenName.hxx>
 #include <AcisEnt_Attrib.hxx>
 #include <IFSelect_ReturnStatus.hxx>
@@ -78,7 +78,7 @@ ACISPlugin_ImportDriver::ACISPlugin_ImportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer ACISPlugin_ImportDriver::Execute( LOGBOOK& log ) const
+Standard_Integer ACISPlugin_ImportDriver::Execute( Handle(TFunction_Logbook)& log ) const
 {
   if( Label().IsNull() ) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -161,11 +161,7 @@ Standard_Integer ACISPlugin_ImportDriver::Execute( LOGBOOK& log ) const
 
   aFunction->SetValue( aResShape );
 
-#if OCC_VERSION_MAJOR < 7
-  log.SetTouched(Label());
-#else
   log->SetTouched(Label());
-#endif
 
   return 1;
 }
@@ -198,4 +194,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( ACISPlugin_ImportDriver, GEOM_BaseDriver );