mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
Problem: non-modifying member functions not marked as const/static
Solution: add const/static
This commit is contained in:
@@ -73,7 +73,7 @@ zmq::mailbox_t *zmq::io_thread_t::get_mailbox ()
|
||||
return &_mailbox;
|
||||
}
|
||||
|
||||
int zmq::io_thread_t::get_load ()
|
||||
int zmq::io_thread_t::get_load () const
|
||||
{
|
||||
return _poller->get_load ();
|
||||
}
|
||||
@@ -107,7 +107,7 @@ void zmq::io_thread_t::timer_event (int)
|
||||
zmq_assert (false);
|
||||
}
|
||||
|
||||
zmq::poller_t *zmq::io_thread_t::get_poller ()
|
||||
zmq::poller_t *zmq::io_thread_t::get_poller () const
|
||||
{
|
||||
zmq_assert (_poller);
|
||||
return _poller;
|
||||
|
||||
Reference in New Issue
Block a user