mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Problem: inconsistent polymorphic inheritance
Solution: consistently use virtual, override and final
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user