1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0026381: OSD_File - close file on destruction

Add destructor for OSD_File, that unlocks and close file.

Remove senseless checks from status functions in code for Linux.

Destructor of OSD_FileNode is made protected to avoid possibility of deleting descendants by pointer to base class
This commit is contained in:
akz
2015-10-01 13:28:12 +03:00
committed by bugmaster
parent 90c8c7f32b
commit 4485f3d0f0
3 changed files with 21 additions and 33 deletions

View File

@@ -52,6 +52,9 @@ public:
//! Instantiates the object file, storing its name
Standard_EXPORT OSD_File(const OSD_Path& Name);
//! Unlocks and closes a file, deletes a descriptor and destructs a file object.
Standard_EXPORT ~OSD_File();
//! CREATES a file if it doesn't already exists or empties
//! an existing file.