mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #545 CAtomicFile::abandon() closes without renaming, and dtor abandons if it is called due to an exception being thrown.
This commit is contained in:
@@ -50,6 +50,11 @@ namespace BlackMisc
|
||||
return error() == NoError;
|
||||
}
|
||||
|
||||
void CAtomicFile::abandon()
|
||||
{
|
||||
QFile::close();
|
||||
}
|
||||
|
||||
CAtomicFile::FileError CAtomicFile::error() const
|
||||
{
|
||||
if (m_renameError) { return RenameError; }
|
||||
|
||||
Reference in New Issue
Block a user