Просмотр исходного кода

QAtomicInt does not have a int conversion operator any more.

Sascha Zelzer лет назад: 10
Родитель
Сommit
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;