From ad7852533d84d5d0ea6242242c8deba8e1aeaf3f Mon Sep 17 00:00:00 2001 From: ViacheslavMarchenko <88097741+ViacheslavMarchenko@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:28:42 +0200 Subject: [PATCH] Update call_once.h Qualifie with CallOnce:: into qCallOncePerThread due to conflict on MacOS X --- handler/singletone/call_once.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handler/singletone/call_once.h b/handler/singletone/call_once.h index d2afe50..7ff582a 100644 --- a/handler/singletone/call_once.h +++ b/handler/singletone/call_once.h @@ -71,9 +71,9 @@ template inline static void qCallOncePerThread(Function func) { using namespace CallOnce; - if (!once_flag()->hasLocalData()) { - once_flag()->setLocalData(new QAtomicInt(CO_Request)); - qCallOnce(func, *once_flag()->localData()); + if (!CallOnce::once_flag()->hasLocalData()) { // qualifie with CallOnce:: due to conflict on MacOS X + CallOnce::once_flag()->setLocalData(new QAtomicInt(CO_Request)); + qCallOnce(func, *CallOnce::once_flag()->localData()); } }