aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/internal_network/sockets.h
diff options
context:
space:
mode:
authorFearlessTobi <[email protected]>2022-08-01 22:47:39 +0200
committerFearlessTobi <[email protected]>2022-08-15 20:25:42 +0200
commit6d41088153b4b932b4f2524d4252993a5642f998 (patch)
tree39ea8d5749f2a5bf9216b885780617e7f41c2a7e /src/core/internal_network/sockets.h
parenta5cd639cb627013c22d14331bd0e91228ac44e84 (diff)
downloadyuzu-mainline-6d41088153b4b932b4f2524d4252993a5642f998.tar.gz
yuzu-mainline-6d41088153b4b932b4f2524d4252993a5642f998.zip
core, yuzu: Address first part of review comments
Diffstat (limited to 'src/core/internal_network/sockets.h')
-rw-r--r--src/core/internal_network/sockets.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/internal_network/sockets.h b/src/core/internal_network/sockets.h
index 92dc49993..a70429b19 100644
--- a/src/core/internal_network/sockets.h
+++ b/src/core/internal_network/sockets.h
@@ -32,7 +32,7 @@ public:
std::unique_ptr<SocketBase> socket;
SockAddrIn sockaddr_in;
};
- virtual ~SocketBase() {}
+ virtual ~SocketBase() = default;
virtual SocketBase& operator=(const SocketBase&) = delete;
@@ -89,11 +89,7 @@ public:
virtual void HandleProxyPacket(const ProxyPacket& packet) = 0;
-#if defined(_WIN32)
SOCKET fd = INVALID_SOCKET;
-#elif YUZU_UNIX
- int fd = -1;
-#endif
};
class Socket : public SocketBase {