Problem: non-modifying member functions not marked as const/static

Solution: add const/static
This commit is contained in:
Simon Giesecke
2019-12-25 15:51:26 +01:00
parent 41e3f14d6a
commit 78961eeab7
33 changed files with 76 additions and 72 deletions

View File

@@ -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;