From 890a2a42d44f28b392af9161634394f875df5849 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 4 Nov 2021 20:16:30 +0000 Subject: Use brace initialization for Atomics. Remind me to always build BEFORE committing :P --- netwerk/base/nsSocketTransport2.h | 6 +++--- 1 file 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 mInputClosed = true; - Atomic mOutputClosed = true; + Atomic mInputClosed{true}; + Atomic mOutputClosed{true}; //------------------------------------------------------------------------- // members accessible only on the socket transport thread: @@ -456,7 +456,7 @@ private: int32_t mKeepaliveRetryIntervalS; int32_t mKeepaliveProbeCount; - Atomic mDoNotRetryToConnect = false; + Atomic mDoNotRetryToConnect{false}; }; } // namespace net -- cgit v1.2.3