Explorar o código

QAtomicInt does not have a int conversion operator any more.

Sascha Zelzer %!s(int64=10) %!d(string=hai) anos
pai
achega
d5856fe0e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Libs/Core/ctkErrorLogQtMessageHandler.cpp

+ 1 - 1
Libs/Core/ctkErrorLogQtMessageHandler.cpp

@@ -67,7 +67,7 @@ void ctkErrorLogModelQtMessageOutput(QtMsgType type, const QMessageLogContext& c
   ctkErrorLogQtMessageHandler_CurrentRecursionDepth.ref();
   // Allow a couple of recursion levels to get a hint about where and why recursion occurs,
   // so we stop processing the message if recursion depth is over 10.
-  if (ctkErrorLogQtMessageHandler_CurrentRecursionDepth > 10)
+  if (ctkErrorLogQtMessageHandler_CurrentRecursionDepth.load() > 10)
     {
     ctkErrorLogQtMessageHandler_CurrentRecursionDepth.deref();
     return;