all derived class use final keyword

This commit is contained in:
Benjamin Sergeant 2019-05-12 11:43:21 -07:00
parent d575c7c2a9
commit 7740028291
6 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@
namespace ix namespace ix
{ {
class SelectInterruptEventFd : public SelectInterrupt { class SelectInterruptEventFd final : public SelectInterrupt {
public: public:
SelectInterruptEventFd(); SelectInterruptEventFd();
virtual ~SelectInterruptEventFd(); virtual ~SelectInterruptEventFd();

View File

@ -14,7 +14,7 @@
namespace ix namespace ix
{ {
class SelectInterruptPipe : public SelectInterrupt { class SelectInterruptPipe final : public SelectInterrupt {
public: public:
SelectInterruptPipe(); SelectInterruptPipe();
virtual ~SelectInterruptPipe(); virtual ~SelectInterruptPipe();

View File

@ -16,7 +16,7 @@
namespace ix namespace ix
{ {
class SocketAppleSSL : public Socket class SocketAppleSSL final : public Socket
{ {
public: public:
SocketAppleSSL(int fd = -1); SocketAppleSSL(int fd = -1);

View File

@ -19,7 +19,7 @@
namespace ix namespace ix
{ {
class SocketOpenSSL : public Socket class SocketOpenSSL final : public Socket
{ {
public: public:
SocketOpenSSL(int fd = -1); SocketOpenSSL(int fd = -1);

View File

@ -10,7 +10,7 @@
namespace ix namespace ix
{ {
class SocketSChannel : public Socket class SocketSChannel final : public Socket
{ {
public: public:
SocketSChannel(); SocketSChannel();

View File

@ -23,7 +23,7 @@ namespace ix
using OnConnectionCallback = std::function<void(std::shared_ptr<WebSocket>, using OnConnectionCallback = std::function<void(std::shared_ptr<WebSocket>,
std::shared_ptr<ConnectionState>)>; std::shared_ptr<ConnectionState>)>;
class WebSocketServer : public SocketServer { class WebSocketServer final : public SocketServer {
public: public:
WebSocketServer(int port = SocketServer::kDefaultPort, WebSocketServer(int port = SocketServer::kDefaultPort,
const std::string& host = SocketServer::kDefaultHost, const std::string& host = SocketServer::kDefaultHost,