IOS/Socket: In-class initialize WiiSocket members

This commit is contained in:
Lioncash 2018-04-01 15:27:58 -04:00
parent d8dd7b9e66
commit abb33637a3
1 changed files with 4 additions and 4 deletions

View File

@ -185,9 +185,9 @@ class WiiSocket
}; };
private: private:
s32 fd; s32 fd = -1;
s32 wii_fd; s32 wii_fd = -1;
bool nonBlock; bool nonBlock = false;
std::list<sockop> pending_sockops; std::list<sockop> pending_sockops;
friend class WiiSockMan; friend class WiiSockMan;
@ -201,7 +201,7 @@ private:
void Update(bool read, bool write, bool except); void Update(bool read, bool write, bool except);
bool IsValid() const { return fd >= 0; } bool IsValid() const { return fd >= 0; }
public: public:
WiiSocket() : fd(-1), nonBlock(false) {} WiiSocket() = default;
~WiiSocket(); ~WiiSocket();
void operator=(WiiSocket const&) = delete; void operator=(WiiSocket const&) = delete;
}; };