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:
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;
};