瀏覽代碼

QAtomicInt does not have a int conversion operator any more.

Sascha Zelzer 10 年之前
父節點
當前提交
d5856fe0e6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;