mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Close #21536: Replace ATOMIC_VAR_INIT() macro with constructor
This commit is contained in:
parent
8a6de886be
commit
d2e7d57104
2 changed files with 2 additions and 2 deletions
|
@ -206,7 +206,7 @@ private:
|
|||
|
||||
size_t stepSize = 100; // Handpicked, seems to work well with 4/8 cores.
|
||||
|
||||
std::atomic<size_t> processed = ATOMIC_VAR_INIT(0);
|
||||
std::atomic<size_t> processed{ 0 };
|
||||
|
||||
auto reportProgress = [&]() {
|
||||
const size_t completed = processed;
|
||||
|
|
|
@ -248,7 +248,7 @@ private:
|
|||
class TcpSocket final : public ITcpSocket, protected Socket
|
||||
{
|
||||
private:
|
||||
std::atomic<SocketStatus> _status = ATOMIC_VAR_INIT(SocketStatus::Closed);
|
||||
std::atomic<SocketStatus> _status{ SocketStatus::Closed };
|
||||
uint16_t _listeningPort = 0;
|
||||
SOCKET _socket = INVALID_SOCKET;
|
||||
|
||||
|
|
Loading…
Reference in a new issue