From e35ac1bfb9b63bf1e49dafdcce2033ff42d7c205 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Sat, 20 May 2017 08:16:28 +0200 Subject: Clang 5.0 fixes - Added override keyword - Removed inherited member variables --- src/OSSupport/ServerHandleImpl.h | 2 +- src/OSSupport/TCPLinkImpl.h | 2 +- src/OSSupport/UDPEndpointImpl.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/OSSupport') diff --git a/src/OSSupport/ServerHandleImpl.h b/src/OSSupport/ServerHandleImpl.h index dbb18fc6d..8a22df18b 100644 --- a/src/OSSupport/ServerHandleImpl.h +++ b/src/OSSupport/ServerHandleImpl.h @@ -39,7 +39,7 @@ class cServerHandleImpl: public: /** Closes the server, dropping all the connections. */ - ~cServerHandleImpl(); + virtual ~cServerHandleImpl() override; /** Creates a new server instance listening on the specified port. Both IPv4 and IPv6 interfaces are used, if possible. diff --git a/src/OSSupport/TCPLinkImpl.h b/src/OSSupport/TCPLinkImpl.h index b54c1a2cc..d582e2f8d 100644 --- a/src/OSSupport/TCPLinkImpl.h +++ b/src/OSSupport/TCPLinkImpl.h @@ -44,7 +44,7 @@ public: cTCPLinkImpl(evutil_socket_t a_Socket, cCallbacksPtr a_LinkCallbacks, cServerHandleImplPtr a_Server, const sockaddr * a_Address, socklen_t a_AddrLen); /** Destroys the LibEvent handle representing the link. */ - ~cTCPLinkImpl(); + virtual ~cTCPLinkImpl() override; /** Queues a connection request to the specified host. a_ConnectCallbacks must be valid. diff --git a/src/OSSupport/UDPEndpointImpl.h b/src/OSSupport/UDPEndpointImpl.h index 0e28d0b13..56116df17 100644 --- a/src/OSSupport/UDPEndpointImpl.h +++ b/src/OSSupport/UDPEndpointImpl.h @@ -35,7 +35,7 @@ public: If a_Port is 0, the OS is free to assign any port number it likes to the endpoint. */ cUDPEndpointImpl(UInt16 a_Port, cUDPEndpoint::cCallbacks & a_Callbacks); - ~cUDPEndpointImpl(); + virtual ~cUDPEndpointImpl() override; // cUDPEndpoint overrides: virtual void Close(void) override; -- cgit v1.2.3