Parcourir la source

QAtomicInt does not have a int conversion operator any more.

Sascha Zelzer il y a 10 ans
Parent
commit
d5856fe0e6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;