From abb33637a3b7e571dbe2e2b842edd8fe8523002a Mon Sep 17 00:00:00 2001 From: Lioncash <mathew1800@gmail.com> Date: Sun, 1 Apr 2018 15:27:58 -0400 Subject: [PATCH] IOS/Socket: In-class initialize WiiSocket members --- Source/Core/Core/IOS/Network/Socket.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/IOS/Network/Socket.h b/Source/Core/Core/IOS/Network/Socket.h index c02cd2ee43..733ba65f71 100644 --- a/Source/Core/Core/IOS/Network/Socket.h +++ b/Source/Core/Core/IOS/Network/Socket.h @@ -185,9 +185,9 @@ class WiiSocket }; private: - s32 fd; - s32 wii_fd; - bool nonBlock; + s32 fd = -1; + s32 wii_fd = -1; + bool nonBlock = false; std::list<sockop> pending_sockops; friend class WiiSockMan; @@ -201,7 +201,7 @@ private: void Update(bool read, bool write, bool except); bool IsValid() const { return fd >= 0; } public: - WiiSocket() : fd(-1), nonBlock(false) {} + WiiSocket() = default; ~WiiSocket(); void operator=(WiiSocket const&) = delete; };