Salome HOME
Fix compilation problem on Debian Sarge
authorvsr <vsr@opencascade.com>
Mon, 15 Mar 2010 09:31:54 +0000 (09:31 +0000)
committervsr <vsr@opencascade.com>
Mon, 15 Mar 2010 09:31:54 +0000 (09:31 +0000)
src/SMESH/SMESH_File.cxx

index 5338a6b7f02576c1fb2a850ff010d1dc7619aa12..a86092b429acc918c9569a4e749258412a697459 100644 (file)
@@ -7,6 +7,7 @@
 #include "utilities.h"
 
 #include <OSD_File.hxx>
+#include <OSD_Path.hxx>
 #include <Standard_ProgramError.hxx>
 #include <Standard_ErrorHandler.hxx>
 #include <Standard_Failure.hxx>
@@ -125,7 +126,8 @@ bool SMESH_File::remove()
 {
   close();
   try {
-    OSD_File( TCollection_AsciiString((char*)_name.data()) ).Remove();
+    OSD_Path filePath(TCollection_AsciiString((char*)_name.data()));
+    OSD_File(filePath).Remove();
   }
   catch ( Standard_ProgramError ) {
     MESSAGE("Can't remove file: " << _name << " ; file does not exist or permission denied");