mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
Issue #77 Break dependency of atomicfile on logmessage
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include "blackmisc/atomicfile.h"
|
#include "blackmisc/atomicfile.h"
|
||||||
#include "blackmisc/algorithm.h"
|
#include "blackmisc/algorithm.h"
|
||||||
#include "blackmisc/logmessage.h"
|
|
||||||
#include "blackmisc/stacktrace.h"
|
#include "blackmisc/stacktrace.h"
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
@@ -174,12 +173,7 @@ namespace BlackMisc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rename(m_originalFilename))
|
rename(m_originalFilename);
|
||||||
{
|
|
||||||
// fall back succeeded, so just log the reason for the original failure
|
|
||||||
CLogMessage(this).debug(u"CAtomicFile replacing %1: %2") << m_originalFilename << windowsError;
|
|
||||||
}
|
|
||||||
// else if rename() failed, then the reason is already reported by QFile
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user