Mathew Sutcliffe
5035e7b5fb
refs #782 CAtomicFile on Windows: flush buffer before attempting to rename,
...
and use ReplaceFile to rename if target already exists.
2016-12-06 09:46:39 +01:00
Mathew Sutcliffe
d9d16dc8e0
refs #782 Check permissions in CAtomicFile::open to get earlier indication of any problems.
2016-12-06 09:34:28 +01:00
Mathew Sutcliffe
f8fc82019d
Invert logic of CAtomicFile destructor:
...
abandon changes if destruction is due to an exception,
instead of applying changes if destruction is NOT due to an exception.
Because otherwise QFile destructor will apply changes regardless,
by calling the close method via virtual dispatch.
2016-08-26 21:04:42 +01:00
Roland Winklmeier
3d7a39ed00
Fix BlackMisc header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #630
2016-05-13 17:05:49 +02:00
Mathew Sutcliffe
ab2e5af8d6
refs #545 CAtomicFile::abandon() closes without renaming, and dtor abandons if it is called due to an exception being thrown.
2016-01-27 23:37:48 +00:00
Mathew Sutcliffe
f9de444a53
refs #545 CAtomicFile used in CValueCache to avoid corruption in case serialization is interrupted.
2016-01-27 23:37:48 +00:00