diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-04-01 15:27:58 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-04-01 15:27:58 -0400 |
| commit | abb33637a3b7e571dbe2e2b842edd8fe8523002a (patch) | |
| tree | 32220eaf45a0807a7e211dea0346733807123fbd /Source/Core | |
| parent | d8dd7b9e66816c6999515de9deb3c22c8d0dc2ab (diff) | |
IOS/Socket: In-class initialize WiiSocket members
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/IOS/Network/Socket.h | 8 |
1 files 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; }; |
