mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 21:56:25 +01:00
Problem: pointee types are unnecessarily non-const
Solution: add const where possible
This commit is contained in:
@@ -487,7 +487,8 @@ bool zmq::router_t::identify_peer (pipe_t *pipe_, bool locally_initiated_)
|
||||
|
||||
// Try to remove an existing routing id entry to allow the new
|
||||
// connection to take the routing id.
|
||||
out_pipe_t *existing_outpipe = lookup_out_pipe (routing_id);
|
||||
const out_pipe_t *const existing_outpipe =
|
||||
lookup_out_pipe (routing_id);
|
||||
|
||||
if (existing_outpipe) {
|
||||
if (!_handover)
|
||||
|
||||
Reference in New Issue
Block a user