Problem: several fields are non-const without need

Solution: add const where easily possible
This commit is contained in:
sigiesec
2018-02-02 17:08:52 +01:00
committed by Simon Giesecke
parent b77d7610cd
commit 368eff9ecb
13 changed files with 23 additions and 20 deletions

View File

@@ -72,12 +72,15 @@ zmq::tcp_connecter_t::tcp_connecter_t (class io_thread_t *io_thread_,
connect_timer_started (false),
reconnect_timer_started (false),
session (session_),
current_reconnect_ivl (options.reconnect_ivl)
current_reconnect_ivl (options.reconnect_ivl),
socket (session->get_socket ())
{
zmq_assert (addr);
zmq_assert (addr->protocol == "tcp");
addr->to_string (endpoint);
socket = session->get_socket ();
// TODO the return value is unused! what if it fails? if this is impossible
// or does not matter, change such that endpoint in initialized using an
// initializer, and make endpoint const
}
zmq::tcp_connecter_t::~tcp_connecter_t ()