X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGEOMImpl%2FGEOMImpl_ExportDriver.cxx;h=2ee22d9d98969a83946e37d2a5b819548abdbcdc;hb=7a3c2d25cc85b5c75acf2c8df92e4373af480d42;hp=7d3bbf7f39d34f5b2a7e99a22cc0320f249d11d4;hpb=bd2042b4d19d69deaf182edda40bbff83e53490a;p=modules%2Fgeom.git diff --git a/src/GEOMImpl/GEOMImpl_ExportDriver.cxx b/src/GEOMImpl/GEOMImpl_ExportDriver.cxx index 7d3bbf7f3..2ee22d9d9 100644 --- a/src/GEOMImpl/GEOMImpl_ExportDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ExportDriver.cxx @@ -57,7 +57,7 @@ GEOMImpl_ExportDriver::GEOMImpl_ExportDriver() //function : Execute //purpose : //======================================================================= -Standard_Integer GEOMImpl_ExportDriver::Execute(TFunction_Logbook& log) const +Standard_Integer GEOMImpl_ExportDriver::Execute(LOGBOOK& log) const { if (Label().IsNull()) return 0; Handle(GEOM_Function) aFunction = GEOM_Function::GetFunction(Label()); @@ -88,7 +88,11 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(TFunction_Logbook& log) const if( !GEOMImpl_IECallBack::GetCallBack( aFormatName )->Export( GetDocID(), obj, aFileName, aFormatName ) ); return 0; +#if OCC_VERSION_MAJOR < 7 log.SetTouched(Label()); +#else + log->SetTouched(Label()); +#endif return 1; } @@ -106,5 +110,4 @@ GetCreationInformation(std::string& theOperationName, return false; } -IMPLEMENT_STANDARD_HANDLE (GEOMImpl_ExportDriver,GEOM_BaseDriver); -IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ExportDriver,GEOM_BaseDriver); +OCCT_IMPLEMENT_STANDARD_RTTIEXT (GEOMImpl_ExportDriver,GEOM_BaseDriver);