]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/STLPlugin/STLPlugin_ImportDriver.cxx
Salome HOME
0023450: Fields are not displayed in GEOM
[modules/geom.git] / src / STLPlugin / STLPlugin_ImportDriver.cxx
index a586767b9957ab70781b288c1f731bd46ad90276..368429795f9000f8331eab4aa84ac3d98f4c457b 100644 (file)
@@ -61,7 +61,7 @@ STLPlugin_ImportDriver::STLPlugin_ImportDriver()
 //function : Execute
 //purpose  :
 //=======================================================================
-Standard_Integer STLPlugin_ImportDriver::Execute(LOGBOOK& log) const
+Standard_Integer STLPlugin_ImportDriver::Execute(Handle(TFunction_Logbook)& log) const
 {
   if( Label().IsNull() ) return 0;
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction( Label() );
@@ -109,11 +109,7 @@ Standard_Integer STLPlugin_ImportDriver::Execute(LOGBOOK& log) const
 
   aFunction->SetValue( aShape );
 
-#if OCC_VERSION_MAJOR < 7
-  log.SetTouched(Label());
-#else
   log->SetTouched(Label());
-#endif
 
   return 1;
 }
@@ -146,4 +142,4 @@ GetCreationInformation( std::string&             theOperationName,
   return true;
 }
 
-OCCT_IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ImportDriver, GEOM_BaseDriver );
+IMPLEMENT_STANDARD_RTTIEXT( STLPlugin_ImportDriver, GEOM_BaseDriver );