Salome HOME
Correction for 15881. Problem compilation on RedHat and DebianSarge T15881 T32x_16Aug2007_16h00m T_13901 T_24092007 T_reliquat_2007
authormaintenance team <salome-mnt@opencascade.com>
Mon, 30 Jul 2007 12:31:06 +0000 (12:31 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Mon, 30 Jul 2007 12:31:06 +0000 (12:31 +0000)
src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index a62fa7b1ffeae3bce742db2dbb6502893ae44837..d49ead5268d4cb3ae4d96954744e1358de84ab90 100644 (file)
@@ -48,6 +48,7 @@ using namespace std;
 #include <NCollection_Map.hxx>
 #include <OSD_Path.hxx>
 #include <OSD_File.hxx>
+#include <TCollection_AsciiString.hxx>
 
 // Netgen include files
 namespace nglib {
@@ -501,6 +502,12 @@ bool NETGENPlugin_Mesher::Compute()
 
 void NETGENPlugin_Mesher::RemoveTmpFiles()
 {
-  OSD_File( OSD_Path("test.out") ).Remove();
-  OSD_File( OSD_Path("problemfaces") ).Remove();
+  TCollection_AsciiString str("test.out");
+  OSD_Path path1( str );
+  OSD_File file1( path1 );
+  file1.Remove();
+  str = "problemfaces";
+  OSD_Path path2( str );
+  OSD_File file2( path2 );
+  file2.Remove();
 }