Salome HOME
0023450: Fields are not displayed in GEOM
[modules/geom.git] / src / GEOMImpl / GEOMImpl_PolylineDriver.cxx
index e1cfea99eb2196140c5cd009290c5fd120bb1793..d9d32a486789ea28c9fd6b063ccc1068a353e48f 100644 (file)
@@ -69,7 +69,7 @@ GEOMImpl_PolylineDriver::GEOMImpl_PolylineDriver()
 //function : MakePolyline2D
 //purpose  :
 //======================================================================= 
-Standard_Integer GEOMImpl_PolylineDriver::MakePolyline2D(LOGBOOK& log) const
+Standard_Integer GEOMImpl_PolylineDriver::MakePolyline2D(Handle(TFunction_Logbook)& log) const
 {
   if (Label().IsNull()) {
     return 0;
@@ -178,11 +178,7 @@ Standard_Integer GEOMImpl_PolylineDriver::MakePolyline2D(LOGBOOK& log) const
   }
 
   aFunction->SetValue(aShape);
-#if OCC_VERSION_MAJOR < 7
-  log.SetTouched(Label());
-#else
   log->SetTouched(Label());
-#endif
 
   return 1;
 }
@@ -191,7 +187,7 @@ Standard_Integer GEOMImpl_PolylineDriver::MakePolyline2D(LOGBOOK& log) const
 //function : Execute
 //purpose  :
 //======================================================================= 
-Standard_Integer GEOMImpl_PolylineDriver::Execute(LOGBOOK& log) const
+Standard_Integer GEOMImpl_PolylineDriver::Execute(Handle(TFunction_Logbook)& log) const
 {
   if (Label().IsNull()) return 0;    
   Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction(Label());
@@ -276,11 +272,7 @@ Standard_Integer GEOMImpl_PolylineDriver::Execute(LOGBOOK& log) const
   
   aFunction->SetValue(aShape);
   
-#if OCC_VERSION_MAJOR < 7
-  log.SetTouched(Label());
-#else
   log->SetTouched(Label());
-#endif
   
   return 1;    
 }
@@ -445,4 +437,4 @@ GetCreationInformation(std::string&             theOperationName,
   return true;
 }
 
-OCCT_IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PolylineDriver,GEOM_BaseDriver);
+IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_PolylineDriver,GEOM_BaseDriver);