From 9c1eca9325f1bb5313afd167d5a5bcfc2823cdb1 Mon Sep 17 00:00:00 2001 From: abd Date: Thu, 8 May 2008 08:24:16 +0000 Subject: [PATCH] Correct compilation under Win32 platform --- src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip | 4 ---- src/SalomeApp/SalomeApp_Study.cxx | 5 +++-- src/Session/SalomeApp_Engine_i.cxx | 3 ++- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip b/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip index 1239326a3..ca84e31fd 100644 --- a/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip +++ b/src/SALOME_PYQT/SalomePyQt/SalomePyQt_v4.sip @@ -10,10 +10,6 @@ %Import qtmod.sip -%ExportedHeaderCode -#include -%End - class SALOME_Selection : QObject { %TypeHeaderCode diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index aeee814b6..6c30d871c 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -35,7 +35,6 @@ #include #include -#include "utilities.h" #include #include #include @@ -43,6 +42,8 @@ #include #include "SALOMEDS_Tool.hxx" +#include "utilities.h" +#include "OpUtil.hxx" #include "SALOMEDSClient_ClientFactory.hxx" #include "SALOMEDSClient_IParameters.hxx" @@ -565,7 +566,7 @@ void SalomeApp_Study::SetListOfFiles ( const char* theModuleName, std::string SalomeApp_Study::GetTmpDir ( const char* theURL, const bool isMultiFile ) { std::string anURLDir = SALOMEDS_Tool::GetDirFromPath(theURL); - std::string aTmpDir = isMultiFile ? anURLDir : SALOMEDS_Tool::GetTmpDir(); + std::string aTmpDir = isMultiFile ? anURLDir : OpUtil_Dir::GetTmpDirByEnv("SALOME_TMP_DIR"); return aTmpDir; } diff --git a/src/Session/SalomeApp_Engine_i.cxx b/src/Session/SalomeApp_Engine_i.cxx index 813270515..e0c4986d2 100644 --- a/src/Session/SalomeApp_Engine_i.cxx +++ b/src/Session/SalomeApp_Engine_i.cxx @@ -29,6 +29,7 @@ #include "SalomeApp_Engine_i.hxx" #include "SALOMEDS_Tool.hxx" +#include "OpUtil.hxx" #include "utilities.h" @@ -113,7 +114,7 @@ CORBA::Boolean SalomeApp_Engine_i::Load (SALOMEDS::SComponent_ptr theComponent, const int studyId = theComponent->GetStudy()->StudyId(); // Create a temporary directory for the component's data files - std::string aTmpDir = isMultiFile ? theURL : SALOMEDS_Tool::GetTmpDir(); + std::string aTmpDir = isMultiFile ? theURL : OpUtil_Dir::GetTmpDirByEnv("SALOME_TMP_DIR"); // Convert the byte stream theStream to a files and place them in the tmp directory. // The files and temporary directory must be deleted by the component loading procedure. -- 2.39.2