From f6a908510e6d2d69e4919d3c613246d8f6f3c1c7 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Fri, 28 Aug 2020 00:37:30 +0100 Subject: [PATCH] Issue #77 Break dependency of atomicfile on logmessage --- src/blackmisc/atomicfile.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/blackmisc/atomicfile.cpp b/src/blackmisc/atomicfile.cpp index ac5dcfa03..03311086a 100644 --- a/src/blackmisc/atomicfile.cpp +++ b/src/blackmisc/atomicfile.cpp @@ -8,7 +8,6 @@ #include "blackmisc/atomicfile.h" #include "blackmisc/algorithm.h" -#include "blackmisc/logmessage.h" #include "blackmisc/stacktrace.h" #include @@ -174,12 +173,7 @@ namespace BlackMisc return; } } - if (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 + rename(m_originalFilename); } } #else