mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 13:50:34 +05:00
Fix compilation problem on Debian Sarge
This commit is contained in:
parent
8baf98a974
commit
e2018c0393
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user