IOS/Socket: In-class initialize WiiSocket members
This commit is contained in:
parent
d8dd7b9e66
commit
abb33637a3
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue