diff options
author | Moonchild <moonchild@palemoon.org> | 2021-11-04 20:16:30 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-04-04 22:06:25 +0200 |
commit | 28a69cf1e2d8c2ec1707961fef541ed5c33cf615 (patch) | |
tree | 44afb644836446e756ee44945720d8591b340beb /netwerk/base | |
parent | bdfc1adbd20b7b5e0c2c7c6e1ad87278822edefa (diff) | |
download | uxp-28a69cf1e2d8c2ec1707961fef541ed5c33cf615.tar.gz |
Use brace initialization for Atomics.
Remind me to always build BEFORE committing :P
Diffstat (limited to 'netwerk/base')
-rw-r--r-- | netwerk/base/nsSocketTransport2.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/netwerk/base/nsSocketTransport2.h b/netwerk/base/nsSocketTransport2.h index 60084d53e2..cb107e6e79 100644 --- a/netwerk/base/nsSocketTransport2.h +++ b/netwerk/base/nsSocketTransport2.h @@ -306,8 +306,8 @@ private: uint16_t SocketPort() { return (!mProxyHost.IsEmpty() && !mProxyTransparent) ? mProxyPort : mPort; } const nsCString &SocketHost() { return (!mProxyHost.IsEmpty() && !mProxyTransparent) ? mProxyHost : mHost; } - Atomic<bool> mInputClosed = true;
- Atomic<bool> mOutputClosed = true;
+ Atomic<bool> mInputClosed{true}; + Atomic<bool> mOutputClosed{true}; //------------------------------------------------------------------------- // members accessible only on the socket transport thread: @@ -456,7 +456,7 @@ private: int32_t mKeepaliveRetryIntervalS; int32_t mKeepaliveProbeCount; - Atomic<bool> mDoNotRetryToConnect = false; + Atomic<bool> mDoNotRetryToConnect{false}; }; } // namespace net |