projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
0030403: Application Framework - Overwriting Big BinOcaf Files Does Not Reduce Their...
[occt.git]
/
src
/
OSD
/
OSD_OpenFile.cxx
diff --git
a/src/OSD/OSD_OpenFile.cxx
b/src/OSD/OSD_OpenFile.cxx
index
ba8db4b
..
72b54b0
100644
(file)
--- a/
src/OSD/OSD_OpenFile.cxx
+++ b/
src/OSD/OSD_OpenFile.cxx
@@
-34,14
+34,12
@@
static int OSD_OpenFile_iosMode2FileFlags (::std::ios_base::openmode theMode)
{
aFlags |= O_WRONLY;
aFlags |= O_CREAT;
+ aFlags |= O_TRUNC;
+
if (theMode & ::std::ios_base::app)
{
aFlags |= O_APPEND;
}
- if (theMode & ::std::ios_base::trunc)
- {
- aFlags |= O_TRUNC;
- }
}
#ifdef _WIN32
if (theMode & ::std::ios_base::binary)