Commit Graph

20 Commits

Author SHA1 Message Date
Klaus Basan
d59e1c3332 Style 2019-09-16 20:29:56 +01:00
Roland Rossgotterer
7bc20d45cf Add missing include 2019-04-11 22:11:49 +01:00
Mat Sutcliffe
69afe771d2 Ref T321 Improve CAtomicFile error message and advise the user to try restarting or manually deleting. 2019-02-23 19:01:10 +00:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Roland Winklmeier
e2cf75d51c Fix missing include 2018-09-17 18:28:55 +02:00
Mat Sutcliffe
74f3301679 Ref T321 Add extended error reporting in CAtomicFile::replaceOriginal
to try to gather more info on the problem saving the data cache session file.
2018-09-17 18:28:30 +02:00
Klaus Basan
f36ebbfa83 Doxygen and style 2018-07-25 02:37:12 +02:00
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
f709d959d0 Minor adjustment in CAtomicFile. 2016-12-06 09:34:45 +01:00
Mathew Sutcliffe
1d22bd9acf refs #782 Changes to CAtomicFile::replaceOriginal on Windows:
* Remember to supply canonical paths with native path separators to Win32 API calls.
* Supply the flag to MoveFileEx to wait for the move to really happen.
* Support long paths (more than 260 characters).
2016-12-06 09:34:29 +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
0b07088639 refs #782 Extended error information when data cache fails to write. 2016-12-06 09:34:05 +01:00
Mathew Sutcliffe
b0dd2a76ff CAtomicFile invariant: any method that closes the file must restore the original filename. 2016-07-31 23:17:47 +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
a8fc899219 refs #624 Use std alias traits. 2016-03-22 16:02:48 +00:00
Mathew Sutcliffe
96d9fffcd7 refs #624 Use constexpr instead of Q_CONSTEXPR. 2016-03-19 20:40:03 +00:00
Mathew Sutcliffe
3175e640bb refs #581, #592, #545 CAtomicFile can support ReadWrite mode by first copying the file. 2016-02-06 19:45:51 +00: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