Problem: inconsistent polymorphic inheritance

Solution: consistently use virtual, override and final
This commit is contained in:
Simon Giesecke
2019-12-24 10:39:26 +01:00
parent 6d69898240
commit 628adf1cb7
84 changed files with 525 additions and 487 deletions

View File

@@ -42,7 +42,7 @@
namespace zmq
{
class tipc_listener_t : public stream_listener_base_t
class tipc_listener_t ZMQ_FINAL : public stream_listener_base_t
{
public:
tipc_listener_t (zmq::io_thread_t *io_thread_,
@@ -53,11 +53,12 @@ class tipc_listener_t : public stream_listener_base_t
int set_local_address (const char *addr_);
protected:
std::string get_socket_name (fd_t fd_, socket_end_t socket_end_) const;
std::string get_socket_name (fd_t fd_,
socket_end_t socket_end_) const ZMQ_FINAL;
private:
// Handlers for I/O events.
void in_event ();
void in_event () ZMQ_FINAL;
// Accept the new connection. Returns the file descriptor of the
// newly created connection. The function may return retired_fd