mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
refs #782 CAtomicFile on Windows: flush buffer before attempting to rename,
and use ReplaceFile to rename if target already exists.
This commit is contained in:
committed by
Klaus Basan
parent
52cd84dd99
commit
5035e7b5fb
@@ -27,6 +27,8 @@ namespace BlackMisc
|
||||
* when it is closed, so that it overwrites the target file as a single, atomic transaction.
|
||||
*
|
||||
* If the application crashes while data is still being written, the original file is unchanged.
|
||||
*
|
||||
* \fixme Consider using QSaveFile.
|
||||
*/
|
||||
class BLACKMISC_EXPORT CAtomicFile : public QFile
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user