FastSignals: Replace ATOMIC_VAR_INIT usages with C++ 20 brace init.

Fixes the following issue:

```
Warning:
/Users/runner/work/FreeCAD/FreeCAD/src/3rdParty/FastSignals/libfastsignals/include/fastsignals/connection.h:76:32:
warning: macro 'ATOMIC_VAR_INIT' has been marked as deprecated
[-Wdeprecated-pragma]
   76 |         std::atomic<bool> m_blocked = ATOMIC_VAR_INIT(false);
      |                                       ^
```
This commit is contained in:
Joao Matos
2025-08-24 16:11:27 +01:00
committed by tritao
parent cb69623d1f
commit d11beca852

View File

@@ -39,7 +39,7 @@ public:
bool is_blocked() const noexcept;
private:
std::atomic<int> m_blockCounter = ATOMIC_VAR_INIT(0);
std::atomic<int> m_blockCounter {0};
};
using impl_ptr = std::shared_ptr<advanced_connection_impl>;
@@ -73,7 +73,7 @@ private:
void increment_if_blocked() const noexcept;
std::weak_ptr<advanced_connection::advanced_connection_impl> m_connection;
std::atomic<bool> m_blocked = ATOMIC_VAR_INIT(false);
std::atomic<bool> m_blocked {false};
};
// Scoped connection keeps link between signal and slot and disconnects them in destructor.