Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8baf98a
)
Fix compilation problem on Debian Sarge
author
vsr
<vsr@opencascade.com>
Mon, 15 Mar 2010 09:31:54 +0000
(09:31 +0000)
committer
vsr
<vsr@opencascade.com>
Mon, 15 Mar 2010 09:31:54 +0000
(09:31 +0000)
src/SMESH/SMESH_File.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH/SMESH_File.cxx
b/src/SMESH/SMESH_File.cxx
index 5338a6b7f02576c1fb2a850ff010d1dc7619aa12..a86092b429acc918c9569a4e749258412a697459 100644
(file)
--- a/
src/SMESH/SMESH_File.cxx
+++ b/
src/SMESH/SMESH_File.cxx
@@
-7,6
+7,7
@@
#include "utilities.h"
#include <OSD_File.hxx>
#include "utilities.h"
#include <OSD_File.hxx>
+#include <OSD_Path.hxx>
#include <Standard_ProgramError.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ProgramError.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
@@
-125,7
+126,8
@@
bool SMESH_File::remove()
{
close();
try {
{
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");
}
catch ( Standard_ProgramError ) {
MESSAGE("Can't remove file: " << _name << " ; file does not exist or permission denied");